aboutsummaryrefslogtreecommitdiffstats
path: root/src/todo.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-09-29 12:44:11 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-10-06 12:37:05 +0200
commit70a488a64ed2c6def092c3242c99fd41bb2efcdd (patch)
tree9a03ed1348c53805845de5c0409f837ea1788190 /src/todo.c
parent146877a7daa0c0ce4794c8d33c647622fb1935e1 (diff)
downloadcalcurse-70a488a64ed2c6def092c3242c99fd41bb2efcdd.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/todo.c b/src/todo.c
index 1ccd9f1..8977a06 100644
--- a/src/todo.c
+++ b/src/todo.c
@@ -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)