Do not leak global variables REPLY and strategy

https://github.com/zsh-users/zsh-autosuggestions/issues/341
This commit is contained in:
Martin Väth 2018-06-18 19:47:27 +02:00 committed by Eric Freese
commit 43a011026f
3 changed files with 4 additions and 2 deletions

View file

@ -88,7 +88,7 @@ _zsh_autosuggest_capture_buffer() {
_zsh_autosuggest_capture_completion() {
typeset -g completion
local line
local line REPLY
# Zle will be inactive if we are in async mode
if zle; then