branch: externals/coterm commit 8b2836e1bcc01cf0a3d32c57027228fdda5a7b6a Author: m <> Commit: m <>
Fix incorrect handling of incomplete escape sequences --- coterm.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coterm.el b/coterm.el index 7f84fec..03e65ea 100644 --- a/coterm.el +++ b/coterm.el @@ -506,7 +506,8 @@ initialize it sensibly." string ctl-end)) (while (setq match (string-match coterm--t-control-seq-prefix-regexp string (1+ match))) - (setq ctl-end (1+ match))) + (setq ctl-end match)) + (setq match ctl-end) (ins) (setq coterm--t-unhandled-fragment (substring string last-match-end))) ((null last-match-end)