branch: elpa/vcomplete commit 14429ac79d532995e9268ce5e39c91defca1956c Author: Daniel Semyonov <cm...@dsemy.com> Commit: Daniel Semyonov <cm...@dsemy.com>
Exits 'completion-in-region-mode' when completions aren't visible * vcomplete.el (vcomplete--update-in-region): Exit 'completion-in-region-mode' when there is no completion list buffer window. --- vcomplete.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vcomplete.el b/vcomplete.el index f61903139f..829bdb22a0 100644 --- a/vcomplete.el +++ b/vcomplete.el @@ -215,9 +215,11 @@ With prefix argument N, move N items (negative N means move forward)." "Update the completion list when completing in-region." (while-no-input (redisplay) - (unless (string= (vcomplete--last-string-in-region-1) - vcomplete--last-string) - (completion-help-at-point)))) + (if (get-buffer-window "*Completions*") + (unless (string= (vcomplete--last-string-in-region-1) + vcomplete--last-string) + (completion-help-at-point)) + (completion-in-region-mode -1)))) (defun vcomplete--reset-vars () "Reset variables used by Vcomplete to their default values."