From 686f9288fc841924d7fdad6f4b1740afd5e83c86 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 2 Mar 2024 18:24:54 +0900 Subject: Allow iTerm2 image data that ends with 'ESC \' (#3646) --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index d267aecd..2069571a 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -67,7 +67,7 @@ func init() { // * https://sw.kovidgoyal.net/kitty/graphics-protocol // * https://en.wikipedia.org/wiki/Sixel // * https://iterm2.com/documentation-images.html - passThroughRegex = regexp.MustCompile(`\x1bPtmux;\x1b\x1b.*?[^\x1b]\x1b\\|\x1b(_G|P[0-9;]*q).*?\x1b\\\r?|\x1b]1337;.*?\a`) + passThroughRegex = regexp.MustCompile(`\x1bPtmux;\x1b\x1b.*?[^\x1b]\x1b\\|\x1b(_G|P[0-9;]*q).*?\x1b\\\r?|\x1b]1337;.*?(\a|\x1b\\)`) } type jumpMode int -- cgit v1.2.3