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

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

[nongnu] elpa/evil-matchit 1a663b20fd 029/244: #18 minor bug for python


From: ELPA Syncer
Subject: [nongnu] elpa/evil-matchit 1a663b20fd 029/244: #18 minor bug for python
Date: Thu, 6 Jan 2022 02:58:46 -0500 (EST)

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

    #18 minor bug for python
---
 evil-matchit-python.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/evil-matchit-python.el b/evil-matchit-python.el
index c22867f22e..dfdb4495d8 100644
--- a/evil-matchit-python.el
+++ b/evil-matchit-python.el
@@ -130,7 +130,7 @@
                         (line-end-position)))
 
         (when (= cur-indent (evilmi--python-calculate-indent cur-line))
-          (if (string-match regexp cur-line)
+          (if (and regexp (string-match regexp cur-line))
               (setq where-to-go (line-beginning-position))
             )
           (setq out-of-loop t)
@@ -282,7 +282,6 @@
 
       (if where-to-jump-in-theory (goto-char where-to-jump-in-theory))
 
-      ;; TODO move the cursor to the next line started with keyword
       (evilmi--python-move-to-next-open-tag keyword cur-indent)
       )
      )



reply via email to

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