changeset 12174:c314cd883fcc v8.0.0967

patch 8.0.0967: using a terminal may cause the cursor to blink commit https://github.com/vim/vim/commit/93c92eff26cbf6b1f1a81891ebaf53ee3fb86d51 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 19 21:11:57 2017 +0200 patch 8.0.0967: using a terminal may cause the cursor to blink Problem: Using a terminal may cause the cursor to blink. Solution: Do not set t_vs, since we cannot restore the old blink state.
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Aug 2017 21:15:04 +0200
parents d20785cc7955
children b3ef304e33e0
files src/term.c src/version.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -826,10 +826,11 @@ static struct builtin_term builtin_termc
     {(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
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    967,
+/**/
     966,
 /**/
     965,