]> git.eshelyaron.com Git - emacs.git/commitdiff
Add comment to last fix.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 25 Sep 2008 00:11:36 +0000 (00:11 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 25 Sep 2008 00:11:36 +0000 (00:11 +0000)
lisp/term.el

index a74e271f13a541fe354c2d7ba78f1b5d20935b63..3ab8069b408539456fe049bcb12d53de4bd3a6fa 100644 (file)
@@ -2781,6 +2781,9 @@ See `term-prompt-regexp'."
                                       str i))
                   (when (not funny) (setq funny str-length))
                   (cond ((> funny i)
+                         ;; Decode the string before counting
+                         ;; characters, to avoid garbling of certain
+                         ;; multibyte characters (bug#1006).
                          (setq decoded-substring
                                (decode-coding-string
                                 (substring str i funny)