static void cmd_h(key_info_t key_info, keys_info_t *keys_info) { descending = !descending; clear_at_pos(); print_at_pos(); wrefresh(sort_win); }
static void goto_line(int line) { if(line > bottom) line = bottom; if(curr == line) return; clear_at_pos(); curr = line; print_at_pos(); wrefresh(sort_win); }
static void cmd_k(key_info_t key_info, keys_info_t *keys_info) { if(key_info.count == NO_COUNT_GIVEN) key_info.count = 1; clear_at_pos(); curr -= key_info.count; if(curr < top) curr = top; print_at_pos(); wrefresh(sort_win); }
static void cmd_j(key_info_t key_info, keys_info_t *keys_info) { if(key_info.count == NO_COUNT_GIVEN) key_info.count = 1; clear_at_pos(); curr += key_info.count; if(curr > bottom) curr = bottom; print_at_pos(); wrefresh(sort_win); }
static void goto_line(int line) { line = top + (line - 1)*step; if(line > bottom) line = bottom; if(curr == line) return; clear_at_pos(); curr = line; print_at_pos(); wrefresh(change_win); }
/* Moves cursor to the specified line and updates the dialog. */ static void goto_line(int line) { if(line > bottom) { line = bottom; } if(curr == line) { return; } clear_at_pos(); curr = line; print_at_pos(); ui_refresh_win(sort_win); }