Thank you for the report. Could you try this fix and see if it resolves the issue?
9774651 used \a which indeed matches [A-Za-z] in Vim's regex, not BEL. The fix changes it to \x07 (inside []) and %x07 (outside []).
- exe 'silent! keepj keepp %s/\v\e\]8;[^\a\e]*%(\a|\e\\)//e' .. (&gdefault ? '' : 'g') + exe 'silent! keepj keepp %s/\v\e\]8;[^\x07\e]*%(%x07|\e\\)//e' .. (&gdefault ? '' : 'g')
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I confirmed the fix resolves this issue and tested the pattern with the shell script below.
#!/bin/bash # test_osc.sh [vimpattern] # Use 'vim -e -s < thefilter thefile' form from :help -s-ex # stdin: Ex commands # file: OSC8 data vim --clean -es < <(cat <<EOF %print %s/$1//ge %print q! EOF ) \ <(builtin echo -e " \e]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#ls-a\e\\-a, --all\e]8;;\e\\ \e]8;;http://example.com/BEL\aBEL instead of ST\e]8;;\a \e]8;;http://example.com/\e\\link1\e]8;;\e\\, \e]8;;http://example.com/\e\\link2\e]8;;\e\\ ")
(vt) [vim]$ ./test_osc8.sh '\v\e\]8;[^\x07\e]*%(%x07|\e\\)' ^[]8;;https://www.gnu.org/software/coreutils/manual/coreutils.html#ls-a^[\-a, --all^[]8;;^[\ ^[]8;;http://example.com/BEL^GBEL instead of ST^[]8;;^G ^[]8;;http://example.com/^[\link1^[]8;;^[\, ^[]8;;http://example.com/^[\link2^[]8;;^[\ -a, --all BEL instead of ST link1, link2
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
fixed by #19806
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()