]> 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 7f89ab2762c389eb93fc5e6a60ce3c0aeff4eb72..4fb58353b318f1f43addeda85a15fbbc751498c4 100644 (file)
@@ -2192,7 +2192,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)))))