]> granicus.if.org Git - vim/commitdiff
patch 8.0.0967: using a terminal may cause the cursor to blink v8.0.0967
authorBram Moolenaar <Bram@vim.org>
Sat, 19 Aug 2017 19:11:57 +0000 (21:11 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 19 Aug 2017 19:11:57 +0000 (21:11 +0200)
Problem:    Using a terminal may cause the cursor to blink.
Solution:   Do not set t_vs, since we cannot restore the old blink state.

src/term.c
src/version.c

index 1c5be4d840b34cb7a498221a9c9688a5f075b6d3..8fb3e128c1c24c94265080692953c59552397dea 100644 (file)
@@ -826,10 +826,11 @@ static struct builtin_term builtin_termcaps[] =
     {(int)KS_LE,       "\b"},
     {(int)KS_VI,       IF_EB("\033[?25l", ESC_STR "[?25l")},
     {(int)KS_VE,       IF_EB("\033[?25h", ESC_STR "[?25h")},
-    {(int)KS_VS,       IF_EB("\033[?12h", ESC_STR "[?12h")},
 #if 0
     /* This is currently disabled, because we cannot reliably restore the
-     * cursor because of what appears to be an xterm bug. */
+     * cursor style because of what appears to be an xterm bug. */
+    {(int)KS_VE,       IF_EB("\033[?25h\033[?12l", ESC_STR "[?25h" ESC_STR "[?12l")},
+    {(int)KS_VS,       IF_EB("\033[?12h", ESC_STR "[?12h")},
 #  ifdef TERMINFO
     {(int)KS_CSH,      IF_EB("\033[%p1%d q", ESC_STR "[%p1%d q")},
 #  else
index f2696057b4b287c6fbdbd48428ef760789d9616f..28dffea666b5f1a333a4c750f55f7037340ea819 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    967,
 /**/
     966,
 /**/