mirror of
https://github.com/vim/vim.git
synced 2026-05-28 00:21:37 +02:00
patch 9.2.0178: DEC mode requests are sent even when not in raw mode
Problem: Vim sends DEC mode query requests (DECRQM) regardless of the
terminal mode.
Solution: Only send DEC mode requests when cur_tmode is TMODE_RAW, but
e.g not for gui mode (Foxe Chen).
fixes: #19709
closes: #19710
Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
36d0022b3b
commit
d737e24437
+7
-4
@@ -4051,11 +4051,14 @@ starttermcap(void)
|
||||
out_str(T_FE);
|
||||
#endif
|
||||
|
||||
// Request setting of relevant DEC modes via DECRQM
|
||||
for (int i = 0; i < (int)ARRAY_LENGTH(dec_modes); i++)
|
||||
if (cur_tmode == TMODE_RAW)
|
||||
{
|
||||
vim_snprintf((char *)IObuff, IOSIZE, "\033[?%d$p", dec_modes[i]);
|
||||
out_str(IObuff);
|
||||
// Request setting of relevant DEC modes via DECRQM
|
||||
for (int i = 0; i < (int)ARRAY_LENGTH(dec_modes); i++)
|
||||
{
|
||||
vim_snprintf((char *)IObuff, IOSIZE, "\033[?%d$p", dec_modes[i]);
|
||||
out_str(IObuff);
|
||||
}
|
||||
}
|
||||
|
||||
out_flush();
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
178,
|
||||
/**/
|
||||
177,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user