Skip to content

Commit

Permalink
Change how to check for history search completion
Browse files Browse the repository at this point in the history
Fixes #586.
  • Loading branch information
marlonrichert committed May 4, 2023
1 parent f79acc7 commit 584bcba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ zmodload -F zsh/terminfo p:terminfo
local +h curcontext=${curcontext:-${WIDGET}:::}
local +h -a comppostfuncs=( .autocomplete.complete-word.post "$comppostfuncs[@]" )

if [[ $_lastcomp[tags] == history-lines && -z $compstate[old_list] ]]; then
autocomplete:_main_complete:new - history-lines _autocomplete.history_lines
if [[ -z $compstate[old_list] && $curcontext == history-incremental-search* ]]; then
autocomplete:_main_complete:new - history-lines _autocomplete.history_lines
elif [[ -z $compstate[old_list] ]] ||
[[ -v _autocomplete__partial_list && $WIDGETSTYLE == (|*-)(list|menu)(|-*) ]] ||
_autocomplete.should_insert_unambiguous; then
Expand Down

0 comments on commit 584bcba

Please sign in to comment.