Skip to content

Commit

Permalink
Remove _history completer
Browse files Browse the repository at this point in the history
It can causes hangs & other performance hits.
  • Loading branch information
marlonrichert committed Sep 12, 2021
1 parent bdc848b commit d7a0899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/.autocomplete.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ _autocomplete.config.completer() {
if [[ CURRENT -eq 1 && -z $PREFIX$SUFFIX && $compstate[context] == command ]]; then
reply=( _complete )
else
reply=( _expand _complete _correct _complete:-fuzzy _ignored _history _history:-fuzzy )
reply=( _expand _complete _correct _complete:-fuzzy _ignored )
fi
}
builtin zstyle ':completion:list-expand:*' completer \
_expand _complete:-fuzzy _ignored _history:-fuzzy
_expand _complete:-fuzzy _ignored
builtin zstyle ':completion:history-incremental-*search-*:*' completer \
_autocomplete.history_lines

Expand Down

0 comments on commit d7a0899

Please sign in to comment.