From 2695de63e370235c4d3d73e3fe07cc1006de3460 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 17 Apr 2020 21:13:01 +0200 Subject: [PATCH] patch 8.2.0592: MS-Windows with VTP: cursor is not made invisible Problem: MS-Windows with VTP: cursor is not made invisible. Solution: Output the code to make the cursor visible or invisible. (Nobuhiro Takasaki, closes #5941) --- src/os_win32.c | 4 ++++ src/version.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/os_win32.c b/src/os_win32.c index b3e706164..143dab907 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -5996,6 +5996,10 @@ visual_bell(void) cursor_visible(BOOL fVisible) { s_cursor_visible = fVisible; + + if (USE_VTP) + vtp_printf("\033[?25%c", fVisible ? 'h' : 'l'); + # ifdef MCH_CURSOR_SHAPE mch_update_cursor(); # endif diff --git a/src/version.c b/src/version.c index e6eadca32..0ca4f39c9 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 592, /**/ 591, /**/ -- 2.40.0