branch: elpa/git-commit
commit 979133b39282f92996c79055c87c90e7731c4a72
Author: Basil L. Contovounesios <conto...@tcd.ie>
Commit: Basil L. Contovounesios <conto...@tcd.ie>

    magit-pop-revision-stack: Fix skip-syntax string
    
    Remove invalid syntax class 's' from skip-syntax-backward argument.
    '\s-' is regexp syntax for the '-' whitespace syntax class, but the
    's' prefix is not needed (nor valid) in skip-syntax strings.
    Found by the XR/Relint linter.
---
 lisp/magit-extras.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/magit-extras.el b/lisp/magit-extras.el
index 7cef0b6fdd..fe0de3914b 100644
--- a/lisp/magit-extras.el
+++ b/lisp/magit-extras.el
@@ -730,7 +730,7 @@ the minibuffer too."
                     (string-replace "%N" idx eob-format)))
             (save-excursion
               (goto-char (point-max))
-              (skip-syntax-backward ">s-")
+              (skip-syntax-backward ">-")
               (beginning-of-line)
               (if (and comment-start (looking-at comment-start))
                   (while (looking-at comment-start)

Reply via email to