File reorder-exit-raw-mode.patch of Package vim.32830
Index: vim-9.0.1443/src/term.c
===================================================================
--- vim-9.0.1443.orig/src/term.c
+++ vim-9.0.1443/src/term.c
@@ -3998,9 +3998,9 @@ stoptermcap(void)
// protocol
out_str(T_TE); // stop termcap mode
- cursor_on(); // just in case it is still off
out_str_t_TE(); // stop "raw" mode, modifyOtherKeys and
// Kitty keyboard protocol
+ cursor_on(); // just in case it is still off
screen_start(); // don't know where cursor is now
out_flush();
}