]> git.deb.at Git - pkg/abook.git/blobdiff - list.c
add show_cursor config option
[pkg/abook.git] / list.c
diff --git a/list.c b/list.c
index 62159522a74368d295f03f681d51193f2bfbeadf..9f293e9eb8b88abe2be6499fd712142a670d8edb 100644 (file)
--- a/list.c
+++ b/list.c
@@ -110,6 +110,11 @@ refresh_list()
                print_list_line(i, line, i == curitem);
         }
 
+       if(opt_get_bool(BOOL_SHOW_CURSOR)) {
+               wmove(list, curitem - first_list_item, 0);
+               /* need to call refresh() to update the cursor positions */
+               refresh();
+       }
         wrefresh(list);
 }