From 3df05af809fa88bb4396fe4de85b3defb1f9623d Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 5 Apr 2020 19:05:53 -0700 Subject: [PATCH] Revert "Do not prevent multiple tab-completions with the same command line" This reverts commit 41dcf84386477a2068a1f272006f8a88fbd1c716. This seems to have broken a lot of interactive scenarios. --- src/reader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reader.cpp b/src/reader.cpp index 79062e47c..172d3a7a2 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -2735,8 +2735,8 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat cycle_cursor_pos = token_end - buff; bool cont_after_prefix_insertion = (c == rl::complete_and_search); - rls.comp_empty = !handle_completions(rls.comp, token_begin - buff, token_end - buff, - cont_after_prefix_insertion); + rls.comp_empty = handle_completions(rls.comp, token_begin - buff, token_end - buff, + cont_after_prefix_insertion); // Show the search field if requested and if we printed a list of completions. if (c == rl::complete_and_search && !rls.comp_empty && !pager.empty()) {