aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/term.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/term.el b/lisp/term.el
index cbef68dc0ac..9785ce30249 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -2900,11 +2900,12 @@ See `term-prompt-regexp'."
2900 ;; next time. 2900 ;; next time.
2901 (when (= funny str-length) 2901 (when (= funny str-length)
2902 (let ((partial 0)) 2902 (let ((partial 0))
2903 (while (eq (char-charset (aref decoded-substring 2903 (while (and (< partial count)
2904 (- count 1 partial))) 2904 (eq (char-charset (aref decoded-substring
2905 'eight-bit) 2905 (- count 1 partial)))
2906 'eight-bit))
2906 (cl-incf partial)) 2907 (cl-incf partial))
2907 (when (> partial 0) 2908 (when (> count partial 0)
2908 (setq term-terminal-undecoded-bytes 2909 (setq term-terminal-undecoded-bytes
2909 (substring decoded-substring (- partial))) 2910 (substring decoded-substring (- partial)))
2910 (setq decoded-substring 2911 (setq decoded-substring