Remove temporary highlight pointers
Add an additional check to apoint_update_panel() and todo_update_panel() and only highlight currently selected items if the corresponding panel is active. This allows us to remove all the highlight pointer juggling that we used whenever the panel selection changed. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
@@ -437,7 +437,7 @@ todo_update_panel (int which_pan)
|
||||
struct todo *todo = LLIST_TS_GET_DATA (i);
|
||||
num_todo++;
|
||||
t_realpos = num_todo - first;
|
||||
incolor = num_todo - hilt;
|
||||
incolor = (which_pan == TOD) ? num_todo - hilt : num_todo;
|
||||
if (incolor == 0)
|
||||
msgsav = todo->mesg;
|
||||
if (t_realpos >= 0 && t_realpos < max_items)
|
||||
|
||||
Reference in New Issue
Block a user