mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-11 01:28:19 +03:00
Fix #3789
This commit is contained in:
parent
610a09817f
commit
38ae370202
@ -1327,7 +1327,7 @@ static void
|
||||
pending_esc_mode_char(Screen *screen, uint32_t ch, PyObject *dump_callback UNUSED) {
|
||||
if (screen->parser_buf_pos > 0) {
|
||||
write_pending_char(screen, ESC);
|
||||
write_pending_char(screen, screen->parser_buf[screen->parser_buf_pos]);
|
||||
write_pending_char(screen, screen->parser_buf[screen->parser_buf_pos - 1]);
|
||||
write_pending_char(screen, ch);
|
||||
SET_STATE(0);
|
||||
return;
|
||||
|
@ -369,6 +369,7 @@ class TestParser(BaseTest):
|
||||
pb('\033[?2026h\033[32ma\033[?2026l', ('screen_set_mode', 2026, 1), ('screen_reset_mode', 2026, 1), ('select_graphic_rendition', '32 '), ('draw', 'a'))
|
||||
pb('\033[?2026h\033P+q544e\033\\ama\033P=2s\033\\',
|
||||
('screen_set_mode', 2026, 1), ('screen_stop_pending_mode',), ('screen_request_capabilities', 43, '544e'), ('draw', 'ama'))
|
||||
pb('\033P=1s\033\\\033(B\033P=2s\033\\', ('screen_start_pending_mode',), ('screen_stop_pending_mode',), ('screen_designate_charset', 0, 66))
|
||||
|
||||
s.reset()
|
||||
s.set_pending_timeout(timeout)
|
||||
|
Loading…
Reference in New Issue
Block a user