aports/community/neovim/ignore-st-cursor-shape.patch
Jean-Louis Fuchs 84a345310b community/neovim: ignore st terminfo cursor shape
Fixes a crash that started to appear with the ncurses 6.0_p20171125-r0
update.
2018-02-09 18:59:29 +00:00

21 lines
1.1 KiB
Diff

diff -ruN a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
--- a/src/nvim/tui/tui.c 2018-02-09 18:00:57.112018546 +0100
+++ b/src/nvim/tui/tui.c 2018-02-09 18:03:44.232783880 +0100
@@ -1444,7 +1444,7 @@
// Some terminals can not currently be trusted to report if they support
// DECSCUSR or not. So we need to have a blacklist for when we should not
// trust the reported features.
- if (!((vte_version != 0 && vte_version < 3900) || konsole)) {
+ if (!(st || (vte_version != 0 && vte_version < 3900) || konsole)) {
// Dickey ncurses terminfo has included the Ss and Se capabilities,
// pioneered by tmux, since 2011-07-14. So adding them to terminal types,
// that do actually have such control sequences but lack the correct
@@ -1464,6 +1464,7 @@
|| tmux // per tmux manual page
// https://lists.gnu.org/archive/html/screen-devel/2013-03/msg00000.html
|| screen
+ || st // #7641
|| rxvt // per command.C
// per analysis of VT100Terminal.m
|| iterm || iterm_pretending_xterm