mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-16 10:11:14 -03:00
[Pager] Make up without selected contents jump back into the pager
This makes it possible to select the last element of the completions with just one keypress. Fixes #3115.
This commit is contained in:
@@ -2970,9 +2970,9 @@ const wchar_t *reader_readline(int nchars) {
|
||||
|
||||
// Now do the selection.
|
||||
select_completion_in_direction(direction);
|
||||
} else if (c == R_DOWN_LINE && !data->pager.empty()) {
|
||||
// We pressed down with a non-empty pager contents, begin navigation.
|
||||
select_completion_in_direction(direction_south);
|
||||
} else if (!data->pager.empty()) {
|
||||
// We pressed a direction with a non-empty pager, begin navigation.
|
||||
select_completion_in_direction(c == R_DOWN_LINE ? direction_south : direction_north);
|
||||
} else {
|
||||
// Not navigating the pager contents.
|
||||
editable_line_t *el = data->active_edit_line();
|
||||
|
||||
Reference in New Issue
Block a user