diff --git a/src/terminal_ui.cc b/src/terminal_ui.cc index faceb16e..71c35ef7 100644 --- a/src/terminal_ui.cc +++ b/src/terminal_ui.cc @@ -811,7 +811,7 @@ Optional TerminalUI::get_next_key() if (private_mode == '?' and next_char() == 'y') // DECRPM { if (params[0] == 2026) - m_synchronized.supported = (params[0] != 0); + m_synchronized.supported = (params[1] == 1 or params[1] == 2); return {Key::Invalid}; } switch (params[0])