Skip to content

[bash-completion] Fix endless loop when completion.bash sourced twice - #2250

Merged
junegunn merged 1 commit into
junegunn:masterfrom
liskin:bash-completion
Nov 14, 2020
Merged

[bash-completion] Fix endless loop when completion.bash sourced twice#2250
junegunn merged 1 commit into
junegunn:masterfrom
liskin:bash-completion

Conversation

@liskin

@liskin liskin commented Nov 13, 2020

Copy link
Copy Markdown
Contributor

I forgot to add the "not _fzf" check into __fzf_orig_completion, so
invoking it twice would rewrite the _fzf_orig_completion_xxx variables
and then cause an endless loop when completion is requested.

Fixes: #2246
Reported-by: @wingpin6

I forgot to add the "not _fzf" check into __fzf_orig_completion, so
invoking it twice would rewrite the _fzf_orig_completion_xxx variables
and then cause an endless loop when completion is requested.

Fixes: ef2c29d ("[bash-completion] Optimize __fzf_orig_completion_filter")
liskin added a commit to liskin/dotfiles that referenced this pull request Nov 13, 2020
@junegunn
junegunn merged commit 7bd99a2 into junegunn:master Nov 14, 2020
@junegunn

Copy link
Copy Markdown
Owner

Thanks for the quick fix!

@liskin
liskin deleted the bash-completion branch November 14, 2020 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants