Improved navigation of pager list. Added tests for it too.

This commit is contained in:
ridiculousfish
2014-01-19 16:41:26 -08:00
parent 808bc42f2a
commit d9d65577f4
5 changed files with 163 additions and 35 deletions

View File

@@ -1527,7 +1527,7 @@ static void accept_autosuggestion(bool full)
static bool is_navigating_pager_contents()
{
return data && data->current_pager.selected_completion() != NULL;
return data && data->current_pager.selected_completion(data->current_page_rendering) != NULL;
}
static void select_completion_in_direction(enum selection_direction_t dir, const wcstring &cycle_command_line, size_t cycle_cursor_pos)