Ignore extra zero in escape code to manipulate window title stack

See https://github.com/weechat/weechat/issues/1702
This commit is contained in:
Kovid Goyal 2021-09-30 09:16:51 +05:30
parent 5cafe198bf
commit 2304d0ec5c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -916,6 +916,7 @@ dispatch_csi(Screen *screen, PyObject DUMP_UNUSED *dump_callback) {
break;
case 22:
case 23:
if (num_params == 3 && !params[2]) num_params = 2; // ignore extra 0, generated by weechat or ncurses
CALL_CSI_HANDLER2(screen_manipulate_title_stack, 22, 0);
break;
default: