aboutsummaryrefslogtreecommitdiffstats
path: root/community/neovim/ignore-st-cursor-shape.patch
blob: eedff075c4dcabf438ee85e44290ce72fd44b865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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