changeset 20073:a2124c6d5e6e v8.2.0592

patch 8.2.0592: MS-Windows with VTP: cursor is not made invisible Commit: https://github.com/vim/vim/commit/2695de63e370235c4d3d73e3fe07cc1006de3460 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 17 21:13:01 2020 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Fri, 17 Apr 2020 21:15:03 +0200
parents 600392f545f9
children 0cd280c8a279
files src/os_win32.c src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    592,
+/**/
     591,
 /**/
     590,