Permalink
Browse files

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)
  • Loading branch information...
brammool committed Aug 24, 2017
1 parent f6d9f96 commit be0b72977f1f1de14f231b5879d5c600ba72c6a6
Showing with 7 additions and 3 deletions.
  1. +5 −3 src/terminal.c
  2. +2 −0 src/version.c
View
@@ -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
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
994,
/**/
993,
/**/

0 comments on commit be0b729

Please sign in to comment.