aboutsummaryrefslogtreecommitdiff
path: root/evil-commands.el
diff options
context:
space:
mode:
authorWinfred Lu <winfred.lu@gmail.com>2013-01-29 19:56:12 +0800
committerWinfred Lu <winfred.lu@gmail.com>2013-01-29 19:56:12 +0800
commit861db927d860651860b8b051f9047afb12b4644a (patch)
tree0a4234f52f833b96676aee646662e11109765664 /evil-commands.el
parentdc07e2c0b8752388696f96fed30ff7aea8b001bb (diff)
Fix to also jump when looking at elif and else.
Diffstat (limited to 'evil-commands.el')
-rw-r--r--evil-commands.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-commands.el b/evil-commands.el
index 9c9f1db..aad8f49 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -465,7 +465,7 @@ and jump to the corresponding one."
(hif-ifx-else-endif-regexp
(concat hif-ifx-regexp "\\|" hif-else-regexp "\\|" hif-endif-regexp)))
(cond
- ((save-excursion (beginning-of-line) (hif-looking-at-ifX))
+ ((save-excursion (beginning-of-line) (or (hif-looking-at-ifX) (hif-looking-at-else)))
(hif-find-next-relevant)
(while (hif-looking-at-ifX)
(hif-ifdef-to-endif)