patch 8.2.0803: libvterm code lags behind the upstream version
Problem: Libvterm code lags behind the upstream version.
Solution: Include revisions 764 - 767
diff --git a/src/libvterm/t/02parser.test b/src/libvterm/t/02parser.test
index 4a4a65b..0a21b92 100644
--- a/src/libvterm/t/02parser.test
+++ b/src/libvterm/t/02parser.test
@@ -150,6 +150,14 @@
PUSH "ghi\e\\"
osc "ghi"]
+!OSC BEL without semicolon
+PUSH "\e]1234\x07"
+ osc [1234 ]
+
+!OSC ST without semicolon
+PUSH "\e]1234\e\\"
+ osc [1234 ]
+
!Escape cancels OSC, starts Escape
PUSH "\e]Something\e9"
escape "9"
diff --git a/src/libvterm/t/run-test.pl b/src/libvterm/t/run-test.pl
index 9f48c5c..96f47fb 100644
--- a/src/libvterm/t/run-test.pl
+++ b/src/libvterm/t/run-test.pl
@@ -112,7 +112,7 @@
$initial //= "";
$initial .= ";" if $initial =~ m/\d+/;
- $line = "$cmd $initial" . join( "", map sprintf("%02x", $_), unpack "C*", eval($data) ) . "$final";
+ $line = "$cmd $initial" . join( "", map sprintf("%02x", $_), unpack "C*", length $data ? eval($data) : "" ) . "$final";
}
elsif( $line =~ m/^(escape|dcs) (\[?)(.*?)(\]?)$/ ) {
$line = "$1 $2" . join( "", map sprintf("%02x", $_), unpack "C*", eval($3) ) . "$4";