]> granicus.if.org Git - vim/commitdiff
patch 8.2.0592: MS-Windows with VTP: cursor is not made invisible v8.2.0592
authorBram Moolenaar <Bram@vim.org>
Fri, 17 Apr 2020 19:13:01 +0000 (21:13 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 17 Apr 2020 19:13:01 +0000 (21:13 +0200)
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
src/version.c

index b3e706164c2817c603c5e27734a5b8c28cd37edf..143dab9077dc6e9849911f3130fd196c644c1d5c 100644 (file)
@@ -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
index e6eadca32d7fe9dbfc77b26ff7eb51118276e809..0ca4f39c9236310ec1e69876db3d4a80ace83deb 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    592,
 /**/
     591,
 /**/