mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Recompute completions if previous attempt failed
When pressing tab repeatedly, completions only computed on the first one. This is because the old logic assumed that completions are present if the last key was tab. Recompute them if there are no completions at all. Fixes #6863
This commit is contained in:
parent
6ec0b583f5
commit
291d1fbf1b
1 changed files with 1 additions and 1 deletions
|
@ -2814,7 +2814,7 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat
|
|||
// Use the command line only; it doesn't make sense to complete in any other line.
|
||||
editable_line_t *el = &command_line;
|
||||
if (is_navigating_pager_contents() ||
|
||||
(!rls.complete_did_insert && rls.last_cmd == rl::complete)) {
|
||||
(!rls.comp.empty() && !rls.complete_did_insert && rls.last_cmd == rl::complete)) {
|
||||
// The user typed complete more than once in a row. If we are not yet fully
|
||||
// disclosed, then become so; otherwise cycle through our available completions.
|
||||
if (current_page_rendering.remaining_to_disclose > 0) {
|
||||
|
|
Loading…
Reference in a new issue