]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/sh-script.el
Fix problems caused by new implementation of sub-word mode
[gnu-emacs] / lisp / progmodes / sh-script.el
index 5f29bb64f05d1c69db5d7c9349963c7a1862116c..2b61bc2e752e4eefff7b7ae80355adf4a01d6c68 100644 (file)
@@ -2197,7 +2197,7 @@ Returns the construct's token and moves point before it, if so."
 Point should be before the newline."
   (save-excursion
     (let ((tok (funcall smie-backward-token-function)))
-      (if (or (when (equal tok "not") (forward-word 1) t)
+      (if (or (when (equal tok "not") (forward-word-strictly 1) t)
               (and (zerop (length tok)) (eq (char-before) ?\))))
           (not (sh-smie--rc-after-special-arg-p))
         (sh-smie--newline-semi-p tok)))))