Ticket #2171: mc-4.7.0.5-selected-vs-hotkey-color.patch

File mc-4.7.0.5-selected-vs-hotkey-color.patch, 550 bytes (added by egmont, 14 years ago)

proof of concept: don't use hotkey colors for the selected entry

  • src/widget.c

    diff -ur mc-4.7.0.5.orig/src/widget.c mc-4.7.0.5/src/widget.c
    old new  
    20882088} 
    20892089 
    20902090static void 
    2091 listbox_draw (WListbox *l, gboolean focused) 
     2091listbox_draw (WListbox *l, gboolean focused_unused) 
    20922092{ 
    20932093    const Dlg_head *h = l->widget.parent; 
    20942094    const int normalc = DLG_NORMALC (h); 
    2095     int selc = focused ? DLG_HOT_FOCUSC (h) : DLG_FOCUSC (h); 
     2095    int selc = DLG_FOCUSC (h); 
    20962096 
    20972097    WLEntry *e; 
    20982098    int i;