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 51291d717b6..514a5dc57a8 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1019,7 +1019,7 @@ Point is at the beginning of the next line."
(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))