diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-09-29 12:44:11 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-10-06 12:37:05 +0200 |
commit | 70a488a64ed2c6def092c3242c99fd41bb2efcdd (patch) | |
tree | 9a03ed1348c53805845de5c0409f837ea1788190 /src/todo.c | |
parent | 146877a7daa0c0ce4794c8d33c647622fb1935e1 (diff) | |
download | calcurse-70a488a64ed2c6def092c3242c99fd41bb2efcdd.zip |
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>
Diffstat (limited to 'src/todo.c')
-rw-r--r-- | src/todo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |