]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/sh-script.el
Fix byte-compiler warnings about looking-back.
[gnu-emacs] / lisp / progmodes / sh-script.el
index 135f945dbb9f19bda60e2b3005cb0ce2f0d37154..e4d16eb0ab624e66a96032aa8ab42c7b8baae79b 100644 (file)
@@ -4344,7 +4344,7 @@ The document is bounded by `sh-here-document-word'."
   (or arg (sh--maybe-here-document)))
 
 (defun sh--maybe-here-document ()
-  (or (not (looking-back "[^<]<<"))
+  (or (not (looking-back "[^<]<<" (line-beginning-position)))
       (save-excursion
        (backward-char 2)
         (or (sh-quoted-p)