Underline todo view hotkeys
authorAndy Spencer <andy753421@gmail.com>
Mon, 26 Jan 2015 20:56:55 +0000 (20:56 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 28 Nov 2016 09:58:43 +0000 (09:58 +0000)
views/todo.c

index d59307e..595db72 100644 (file)
@@ -65,8 +65,10 @@ static int print_group(WINDOW *win, int row, todo_t *todos,
        int n = 1;
 
        /* Label */
-       wattron(win, A_BOLD);
-       mvwprintw(win, row, 0, "%s", label);
+       wattron(win, A_BOLD | A_UNDERLINE);
+       mvwprintw(win, row, 0, "%c",  label[0]);
+       wattroff(win, A_UNDERLINE);
+       mvwprintw(win, row, 1, "%s", &label[1]);
        wattroff(win, A_BOLD);
 
        /* Todos */