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

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

[nongnu] elpa/evil-matchit ccc2cc8a62 221/244: `evilmi-sdk-simple-jump':


From: ELPA Syncer
Subject: [nongnu] elpa/evil-matchit ccc2cc8a62 221/244: `evilmi-sdk-simple-jump': skip whitespace
Date: Thu, 6 Jan 2022 02:59:03 -0500 (EST)

branch: elpa/evil-matchit
commit ccc2cc8a62fe96b1cac70774157a06414504ad66
Author: Nikita Bloshchanevich <nikblos@outlook.com>
Commit: Nikita Bloshchanevich <nikblos@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



reply via email to

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