summaryrefslogtreecommitdiff
path: root/lisp/progmodes/sh-script.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/sh-script.el')
-rw-r--r--lisp/progmodes/sh-script.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index e37390f5b80..663332fb8c6 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -985,7 +985,7 @@ be indented (i.e. a <<- was used rather than just <<)."
(defun sh-font-lock-syntactic-face-function (state)
(if (nth 3 state)
- (if (char-valid-p (nth 3 state))
+ (if (characterp (nth 3 state))
font-lock-string-face
sh-heredoc-face)
font-lock-comment-face))