]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0693: tests: Test_suspend() may fail because of keyprotocol query v9.2.0693
authorVladimír Marek <vlmarek13@gmail.com>
Sun, 21 Jun 2026 17:45:37 +0000 (17:45 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 21 Jun 2026 17:45:37 +0000 (17:45 +0000)
commit8b7582029d3cf5d435eb401eea20faf696ecdcc6
treeb3f79cc68ffb3369750729b3019e07e91cf3d886
parent1b2b58365effdb5fd19176483c212b4ca6bdcbaa
patch 9.2.0693: tests: Test_suspend() may fail because of keyprotocol query

Problem:  tests: Test_suspend() may fail because of keyprotocol query
Solution: Disable keyprotocol and unset t_RK very early so that the
          inner Vim does not query it (Vladimír Marek)

The nested Vim can send a keyprotocol query during startup.  If the terminal
response arrives at the wrong time, the nested Vim may not consume it and the
response can be written to the inner terminal, leaving characters such as 4;2m
after the shell prompt when the test later suspends Vim.

The previous command tried to avoid that with -c 'set keyprotocol=', but -c
commands are applied too late.  Use --cmd 'set t_RK= keyprotocol=' so the
inner Vim disables the query before startup can send it.

closes: #20570

Signed-off-by: Vladimír Marek <vlmarek13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_suspend.vim
src/version.c