From 1ead1b51e1d56ca3248661805c37422f865d2c95 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sun, 2 Nov 2025 15:24:42 +0000 Subject: [PATCH] patch 9.1.1896: tests: patch v9.1.1895 breaks CI Problem: tests: patch v9.1.1895 breaks CI, by failing screen dump tests test_listlbr_utf8, test_diffmode and test_cmdline Solution: Revert it Revert "patch 9.1.1895: OSC terminal response hard to detect" This reverts commit 8707b7a15b8a22ee4f60e1f9e7d3d417b20e60d2. related: #18660 Signed-off-by: Christian Brabandt --- runtime/doc/intro.txt | 4 +--- runtime/doc/tags | 2 -- src/keymap.h | 2 -- src/misc2.c | 2 -- src/term.c | 5 +---- src/version.c | 2 ++ 6 files changed, 4 insertions(+), 13 deletions(-) diff --git a/runtime/doc/intro.txt b/runtime/doc/intro.txt index 828d2852d9..46aa9428f3 100644 --- a/runtime/doc/intro.txt +++ b/runtime/doc/intro.txt @@ -1,4 +1,4 @@ -*intro.txt* For Vim version 9.1. Last change: 2025 Nov 01 +*intro.txt* For Vim version 9.1. Last change: 2025 Oct 12 VIM REFERENCE MANUAL by Bram Moolenaar @@ -450,8 +450,6 @@ notation meaning equivalent decimal value(s) ~ delete 127 command sequence intro ALT-Esc 155 ** CSI when typed in the GUI ** - operating system command 157 ** - finished OSC response ** end-of-line (can be , or , depends on system and 'fileformat') ** diff --git a/runtime/doc/tags b/runtime/doc/tags index 09ba497efc..8fd8cbae16 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -3841,7 +3841,6 @@ $quote eval.txt /*$quote* motion.txt /** map.txt /** intro.txt /** - intro.txt /** scroll.txt /** scroll.txt /** map.txt /** @@ -3962,7 +3961,6 @@ $quote eval.txt /*$quote* term.txt /** -xterm term.txt /*-xterm* term.txt /** - intro.txt /** term.txt /** term.txt /** = change.txt /*=* diff --git a/src/keymap.h b/src/keymap.h index d300979502..e993e0999a 100644 --- a/src/keymap.h +++ b/src/keymap.h @@ -280,7 +280,6 @@ enum key_extra , KE_SID = 106 // special key, followed by {nr}; , KE_ESC = 107 // used for K_ESC , KE_WILD = 108 // triggers wildmode completion - , KE_OSC = 109 // OSC sequence }; /* @@ -479,7 +478,6 @@ enum key_extra #define K_MOUSERIGHT TERMCAP2KEY(KS_EXTRA, KE_MOUSERIGHT) #define K_CSI TERMCAP2KEY(KS_EXTRA, KE_CSI) -#define K_OSC TERMCAP2KEY(KS_EXTRA, KE_OSC) #define K_SNR TERMCAP2KEY(KS_EXTRA, KE_SNR) #define K_PLUG TERMCAP2KEY(KS_EXTRA, KE_PLUG) #define K_CMDWIN TERMCAP2KEY(KS_EXTRA, KE_CMDWIN) diff --git a/src/misc2.c b/src/misc2.c index fcbf0dd1cd..8380e745c9 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -1053,7 +1053,6 @@ static struct key_name_entry {TRUE, NL, STRING_INIT("NewLine"), TRUE}, {TRUE, NL, STRING_INIT("NL"), FALSE}, {TRUE, K_ZERO, STRING_INIT("Nul"), FALSE}, - {TRUE, OSC, STRING_INIT("OSC"), FALSE}, {TRUE, K_PAGEDOWN, STRING_INIT("PageDown"), FALSE}, {TRUE, K_PAGEUP, STRING_INIT("PageUp"), FALSE}, {TRUE, K_PE, STRING_INIT("PasteEnd"), FALSE}, @@ -1112,7 +1111,6 @@ static struct key_name_entry {TRUE, K_XF4, STRING_INIT("xF4"), FALSE}, {TRUE, K_XHOME, STRING_INIT("xHome"), FALSE}, {TRUE, K_XLEFT, STRING_INIT("xLeft"), FALSE}, - {TRUE, K_OSC, STRING_INIT("xOSC"), FALSE}, {TRUE, K_XRIGHT, STRING_INIT("xRight"), FALSE}, {TRUE, K_XUP, STRING_INIT("xUp"), FALSE}, {TRUE, K_ZEND, STRING_INIT("zEnd"), FALSE}, diff --git a/src/term.c b/src/term.c index 39005b242a..4c365b19bd 100644 --- a/src/term.c +++ b/src/term.c @@ -5933,6 +5933,7 @@ handle_osc(char_u *tp, int len, char_u *key_name, int *slen) last_char = ((char_u *)osc_state.buf.ga_data)[osc_state.buf.ga_len - 1]; key_name[0] = (int)KS_EXTRA; + key_name[1] = (int)KE_IGNORE; // Read data and append to buffer. If we reach a terminator, then // finally set the vim var. @@ -5944,8 +5945,6 @@ handle_osc(char_u *tp, int len, char_u *key_name, int *slen) { osc_state.processing = FALSE; - key_name[1] = (int)KE_OSC; - ga_concat_len(&osc_state.buf, tp, i + 1 + (tp[i] == ESC)); ga_append(&osc_state.buf, NUL); *slen = i + 1 + (tp[i] == ESC); @@ -5963,8 +5962,6 @@ handle_osc(char_u *tp, int len, char_u *key_name, int *slen) return OK; } - key_name[1] = (int)KE_IGNORE; - #ifdef ELAPSED_FUNC if (ELAPSED_FUNC(osc_state.start_tv) >= p_ost) { diff --git a/src/version.c b/src/version.c index e42edad47c..ba48dda5a9 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1896, /**/ 1895, /**/ -- 2.47.3