Skip to content

Commit be0b729

Browse files
committed
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)
1 parent f6d9f96 commit be0b729

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/terminal.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,10 +2311,12 @@ create_vterm(term_T *term, int rows, int cols)
23112311

23122312
/* For unix do not use a blinking cursor. In an xterm this causes the
23132313
* cursor to blink if it's blinking in the xterm.
2314-
* We do want a blinking cursor by default on Windows, since that's what
2315-
* the default is for a console. */
2314+
* For Windows we respect the system wide setting. */
23162315
#ifdef WIN3264
2317-
value.boolean = 1;
2316+
if (GetCaretBlinkTime() == INFINITE)
2317+
value.boolean = 0;
2318+
else
2319+
value.boolean = 1;
23182320
#else
23192321
value.boolean = 0;
23202322
#endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
994,
772774
/**/
773775
993,
774776
/**/

0 commit comments

Comments
 (0)