branch: elpa/vcomplete
commit 50d812fc6a7b99646ef4c1b0c418340ac4b2b013
Author: Daniel Semyonov <dan...@dsemy.com>
Commit: Daniel Semyonov <dan...@dsemy.com>

    Remove unnecessary hook removal
    
    * vcomplete.el (vcomplete--reset-vars): Don't remove
    'vcomplete--update-in-minibuffer' from the local 'post-command-hook',
    as this it is never added locally to the buffer from in which this
    removal attempt is made.
---
 vcomplete.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vcomplete.el b/vcomplete.el
index 7c7bfd9796..80b10a3eea 100644
--- a/vcomplete.el
+++ b/vcomplete.el
@@ -230,8 +230,7 @@ With prefix argument N, move N items (negative N means move 
forward)."
   (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)
-  (remove-hook 'post-command-hook #'vcomplete--update-in-minibuffer t)
-  (remove-hook 'post-command-hook #'vcomplete--highlight-completion-at-point 
t))
+  (remove-hook 'post-command-hook #'vcomplete--update-in-minibuffer t))
 
 (defun vcomplete--setup-completions ()
   "Setup `vcomplete-mode' for the `*Completions*' buffer."

Reply via email to