Sync up with Pterodactyl Gnus v0.14.
[elisp/gnus.git-] / lisp / message.el
index ae061e8..f2ba282 100644 (file)
@@ -1755,8 +1755,9 @@ text was killed."
     ;; text properties.
     (while (< b e)
       (subst-char-in-region
-       b (1+ b) (char-after b)
-       (aref message-caesar-translation-table (char-after b)))
+       (when (< (char-after b) 255)
+        b (1+ b) (char-after b)
+        (aref message-caesar-translation-table (char-after b))))
       (incf b))))
 
 (defun message-make-caesar-translation-table (n)