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

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

[nongnu] elpa/evil-matchit 313498e6ec 043/244: #26 jump to percentage


From: ELPA Syncer
Subject: [nongnu] elpa/evil-matchit 313498e6ec 043/244: #26 jump to percentage
Date: Thu, 6 Jan 2022 02:58:48 -0500 (EST)

branch: elpa/evil-matchit
commit 313498e6ec21707c5295fcc326771cb20845b3de
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    #26 jump to percentage
---
 evil-matchit.el | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/evil-matchit.el b/evil-matchit.el
index 851d30910d..dac9320d29 100644
--- a/evil-matchit.el
+++ b/evil-matchit.el
@@ -44,13 +44,12 @@
                          ))
 
 (defun evilmi--operate-on-item (NUM &optional FUNC)
-  (let (plugin
+  (let ((plugin (plist-get evilmi-plugins major-mode))
         rlt
         jumped
-        where-to-jump-in-theory
-        )
+        where-to-jump-in-theory)
 
-    (setq plugin (plist-get evilmi-plugins major-mode))
+    (if (not NUM) (setq NUM 1))
 
     (if plugin
         (mapc
@@ -148,9 +147,11 @@
 ;;;###autoload
 (defun evilmi-jump-items (&optional NUM)
   "jump between item/tag(s)"
-  (interactive "p")
-  (evilmi--operate-on-item NUM)
-  )
+  (interactive "P")
+  (cond
+   (NUM (evil-jump-item NUM))
+   (t (evilmi--operate-on-item NUM))
+   ))
 
 ;;;###autoload
 (defun evilmi-select-items (&optional NUM)



reply via email to

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