From df1bc59812c87a006904b3aac0543f71cf5484e1 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 18 Jan 2016 19:19:18 +0100 Subject: Make automatic selection of todo items smarter * Automatically focus new todo items after adding them to the list. * Keep selection when an item is moved (e.g. by changing its priority). * Focus the next item in the list when an item is removed. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index e6b343b..5d8c9e4 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -1026,7 +1026,7 @@ void todo_delete_note(struct todo *); void todo_delete(struct todo *); void todo_resort(struct todo *); void todo_flag(struct todo *); -int todo_get_position(struct todo *); +int todo_get_position(struct todo *, int); void todo_edit_note(struct todo *, const char *); void todo_view_note(struct todo *, const char *); void todo_free(struct todo *); -- cgit v1.2.3-54-g00ecf