[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/vcomplete 5fefec3e91 40/91: Fix broken highlighting in com
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/vcomplete 5fefec3e91 40/91: Fix broken highlighting in completion list buffers when completing in-region |
Date: |
Tue, 24 May 2022 15:59:08 -0400 (EDT) |
branch: elpa/vcomplete
commit 5fefec3e91576d4351711fce7b4686863e8b37dc
Author: Daniel Semyonov <daniel@dsemy.com>
Commit: Daniel Semyonov <daniel@dsemy.com>
Fix broken highlighting in completion list buffers when completing in-region
* vcomplete.el (vcomplete--reset-vars): Remove step which set
'vcomplete--last-completion-overlay' to nil.
(vcomplete--setup-minibuffer, vcomplete--setup-in-region): Add a step
which sets 'vcomplete--last-completion-overlay' to nil (after a new
completion has been initiated).
---
vcomplete.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/vcomplete.el b/vcomplete.el
index 80b10a3eea..9484276b7e 100644
--- a/vcomplete.el
+++ b/vcomplete.el
@@ -225,8 +225,7 @@ With prefix argument N, move N items (negative N means move
forward)."
(defun vcomplete--reset-vars ()
"Reset variables used by Vcomplete to their default values."
- (setq vcomplete--last-completion-overlay nil
- vcomplete--last-string nil)
+ (setq vcomplete--last-string nil)
(remove-hook 'pre-command-hook #'vcomplete--set-last-string-in-minibuffer t)
(remove-hook 'pre-command-hook #'vcomplete--set-last-string-in-region t)
(remove-hook 'post-command-hook #'vcomplete--update-in-region t)
@@ -240,6 +239,7 @@ With prefix argument N, move N items (negative N means move
forward)."
(defun vcomplete--setup-minibuffer ()
"Setup `vcomplete-mode' for the minibuffer."
(when minibuffer-completion-table
+ (setq vcomplete--last-completion-overlay nil)
(when vcomplete-auto-update
(add-hook 'pre-command-hook
#'vcomplete--set-last-string-in-minibuffer nil t)
@@ -255,6 +255,7 @@ With prefix argument N, move N items (negative N means move
forward)."
;; `completion-in-region-mode' is active.
(when-let ((map (assq #'completion-in-region-mode
minor-mode-overriding-map-alist)))
+ (setq vcomplete--last-completion-overlay nil)
(when vcomplete-auto-update
(add-hook 'pre-command-hook
#'vcomplete--set-last-string-in-region nil t)
- [nongnu] elpa/vcomplete 20e327acce 53/91: ; Indicate that Embark integration has been moved in the NEWS file, (continued)
- [nongnu] elpa/vcomplete 20e327acce 53/91: ; Indicate that Embark integration has been moved in the NEWS file, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 89fd222097 56/91: ; Improve docstring of 'vcomplete--disable-completion-in-region', ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 45adfdd13e 55/91: ; Document last commit in the NEWS file, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete a64c37e780 89/91: ; Generate 'vcomplete-pkg.el' automatically, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 7cd781f7f3 59/91: ; Documentation improvements, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 60b5a005bf 22/91: ; Add last few changes to NEWS file, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 5e055dc556 30/91: Fix cases where 'completion-in-region-mode' is used in the minibuffer, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 21edba4beb 01/91: Initial commit, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete faca6e8c18 32/91: ; Change all instances of "‘" and "’" to "`" and "'" respectively, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete db010f4f61 34/91: Mark variables as risky local variables, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 5fefec3e91 40/91: Fix broken highlighting in completion list buffers when completing in-region,
ELPA Syncer <=
- [nongnu] elpa/vcomplete 6136a3ba16 42/91: ; Update NEWS file, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 8ade381c7c 44/91: Move Embark integration to a separate file, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete b8402112ba 60/91: ; Remove unnecessary declaration, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete b30cedbf26 65/91: ; Fix small style issue in info file, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 8450b1befd 91/91: ; Bump to version 1.2.1, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 4019e76a3d 78/91: New internal function for getting the '*Completions*' window, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 3ac64b6241 87/91: ; Fix info node hyperlink in the commentary of vcomplete.el, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 6dbdbf1a4b 82/91: ; Add build manifest, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 739fee1af0 21/91: Cleanup automatic update code, ELPA Syncer, 2022/05/24
- [nongnu] elpa/vcomplete 56a95cc1df 24/91: ; Fix indentation, ELPA Syncer, 2022/05/24