From 70a488a64ed2c6def092c3242c99fd41bb2efcdd Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 29 Sep 2011 12:44:11 +0200 Subject: 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 --- src/todo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/todo.c') 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) -- cgit v1.2.3