diff --git a/src/reader.rs b/src/reader.rs index 3cf55eb42..eb76111df 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -2932,6 +2932,7 @@ impl ReaderData { self.flash(); return; } + self.suppress_autosuggestion = false; if elt == EditableLineTag::Commandline { self.clear_pager(); } diff --git a/tests/checks/tmux-complete.fish b/tests/checks/tmux-complete.fish index 45088def6..f4c060a87 100644 --- a/tests/checks/tmux-complete.fish +++ b/tests/checks/tmux-complete.fish @@ -77,3 +77,10 @@ isolated-tmux send-keys C-u echo Space old-arg Enter C-l foo2 Space Tab Tab M-. tmux-sleep isolated-tmux capture-pane -p # CHECK: prompt 5> foo2 aabc old-arg + +isolated-tmux send-keys C-u 'echo suggest this' Enter C-l +tmux-sleep +isolated-tmux send-keys 'echo sug' C-w C-z +tmux-sleep +isolated-tmux capture-pane -p +# CHECK: prompt 6> echo suggest this