branch: elpa/evil-matchit commit ccc2cc8a62fe96b1cac70774157a06414504ad66 Author: Nikita Bloshchanevich <nikb...@outlook.com> Commit: Nikita Bloshchanevich <nikb...@outlook.com>
`evilmi-sdk-simple-jump': skip whitespace If the cursor is placed on a group of whitespace followed by a closing item, `evilmi-sdk-simple-jump' errors with a `scan-error', due to calling `scan-sexps', which, after skipping whitespace, sees a prematurely terminated expression (a close tag). Fix that by making the function skip whitespace first, allowing it to see the correct item character. This is consistent with `evil-jump-item'. --- evil-matchit-sdk.el | 1 + 1 file changed, 1 insertion(+) diff --git a/evil-matchit-sdk.el b/evil-matchit-sdk.el index 3c0cbbd09a..30fa1ea38e 100644 --- a/evil-matchit-sdk.el +++ b/evil-matchit-sdk.el @@ -153,6 +153,7 @@ If IS-FORWARD is t, jump forward; or else jump backward." (defun evilmi-sdk-simple-jump () "Alternative for `evil-jump-item'." (if evilmi-debug (message "evilmi-sdk-simple-jump called (point)=%d" (point))) + (skip-syntax-forward " ") (let* ((tmp (evilmi-sdk-jump-forward-p)) (jump-forward (car tmp)) ;; if ff is not nil, it's jump between quotes