changeset 12228:2e47dc775ec1 v8.0.0994

patch 8.0.0994: MS-Windows: cursor in terminal blinks undesirably commit https://github.com/vim/vim/commit/be0b72977f1f1de14f231b5879d5c600ba72c6a6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 24 21:48:26 2017 +0200 patch 8.0.0994: MS-Windows: cursor in terminal blinks undesirably Problem: MS-Windows: cursor in terminal blinks even though the blinking cursor was disabled on the system. Solution: Use GetCaretBlinkTime(). (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Thu, 24 Aug 2017 22:00:05 +0200
parents f3de33e2c62d
children cbafdd1ac00f
files src/terminal.c src/version.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -2311,10 +2311,12 @@ create_vterm(term_T *term, int rows, int
 
     /* For unix do not use a blinking cursor.  In an xterm this causes the
      * cursor to blink if it's blinking in the xterm.
-     * We do want a blinking cursor by default on Windows, since that's what
-     * the default is for a console. */
+     * For Windows we respect the system wide setting. */
 #ifdef WIN3264
-    value.boolean = 1;
+    if (GetCaretBlinkTime() == INFINITE)
+	value.boolean = 0;
+    else
+	value.boolean = 1;
 #else
     value.boolean = 0;
 #endif
--- 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 */
 /**/
+    994,
+/**/
     993,
 /**/
     992,