emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 206be7a 33/39: Fix behavior of f and t in evil operator ma


From: Justin Burkett
Subject: [elpa] master 206be7a 33/39: Fix behavior of f and t in evil operator map
Date: Thu, 21 Jun 2018 15:48:18 -0400 (EDT)

branch: master
commit 206be7a42be71c357a8c3ff488392f0eeda2cf03
Author: Justin Burkett <address@hidden>
Commit: Justin Burkett <address@hidden>

    Fix behavior of f and t in evil operator map
    
    f and t (also F and T) read characters manually, so the popup should not be
    shown after these commands. This only applies if
    which-key-show-operator-state-maps is non-nil.
    
    Fixes #191
---
 which-key.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/which-key.el b/which-key.el
index 1a4212f..c6b89ba 100644
--- a/which-key.el
+++ b/which-key.el
@@ -2451,8 +2451,8 @@ is selected interactively by mode in 
`minor-mode-map-alist'."
                           nil "evil operator/motion keys"))
                    (which-key--show-page)))))
       (let* ((key (key-description (list (read-key)))))
-        (when (string= key "`")
-          ;; evil-goto-mark reads the next char manually
+        (when (member key '("f" "F" "t" "T" "`"))
+          ;; these keys trigger commands that read the next char manually
           (setq which-key--inhibit-next-operator-popup t))
         (cond ((and which-key-use-C-h-commands (string= "C-h" key))
                (which-key-C-h-dispatch))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]