branch: elpa/evil-matchit commit 1a663b20fd722b4f4d68dba69d100d80bb9b4bb5 Author: Chen Bin <chenbin...@gmail.com> Commit: Chen Bin <chenbin...@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) ) )