Skip to content

Commit

Permalink
fix(tui): disable extended keys before exiting alternate screen
Browse files Browse the repository at this point in the history
(cherry picked from commit 2660622)
  • Loading branch information
zeertzjq authored and github-actions[bot] committed Apr 30, 2022
1 parent 14a5b6b commit b80ef0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvim/tui/tui.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ static void terminfo_stop(UI *ui)
// Reset cursor to normal before exiting alternate screen.
unibi_out(ui, unibi_cursor_normal);
unibi_out(ui, unibi_keypad_local);
// Disable extended keys before exiting alternate screen.
unibi_out_ext(ui, data->unibi_ext.disable_extended_keys);
unibi_out(ui, unibi_exit_ca_mode);
// Restore title/icon from the "stack". #4063
unibi_out_ext(ui, data->unibi_ext.restore_title);
Expand All @@ -401,8 +403,6 @@ static void terminfo_stop(UI *ui)
unibi_out_ext(ui, data->unibi_ext.disable_bracketed_paste);
// Disable focus reporting
unibi_out_ext(ui, data->unibi_ext.disable_focus_reporting);
// Disable extended keys
unibi_out_ext(ui, data->unibi_ext.disable_extended_keys);
flush_buf(ui);
uv_tty_reset_mode();
uv_close((uv_handle_t *)&data->output_handle, NULL);
Expand Down

0 comments on commit b80ef0d

Please sign in to comment.