]> granicus.if.org Git - vim/commitdiff
patch 8.0.0994: MS-Windows: cursor in terminal blinks undesirably v8.0.0994
authorBram Moolenaar <Bram@vim.org>
Thu, 24 Aug 2017 19:48:26 +0000 (21:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 24 Aug 2017 19:48:26 +0000 (21:48 +0200)
Problem:    MS-Windows: cursor in terminal blinks even though the blinking
            cursor was disabled on the system.
Solution:   Use GetCaretBlinkTime(). (Ken Takata)

src/terminal.c
src/version.c

index c559d11731054a644c1f4c35518b00971d08062b..c6dc0d9956ef9ecfbd3be26fb05e3f37ec981306 100644 (file)
@@ -2311,10 +2311,12 @@ create_vterm(term_T *term, int rows, int cols)
 
     /* 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
index e54b7bc4dade4f973c6419277c8534f4dbd4bc66..318053950e9becd942c46b63ba99bd13bcd312bd 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    994,
 /**/
     993,
 /**/