]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/w32console.c (w32con_update_end): Fix cursor display.
authorEli Zaretskii <eliz@gnu.org>
Sat, 26 Oct 2024 12:19:53 +0000 (15:19 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 14:53:39 +0000 (15:53 +0100)
(cherry picked from commit a3e41874c1b3d75d18dab9e20e0f183a3086fea4)

src/w32console.c

index b9a84bbf86afec62f7601abfb3ed7f09f0b46522..7393e5b3f6b8e95f6070f784323bc76fdfcbefa5 100644 (file)
@@ -535,6 +535,11 @@ static void
 w32con_update_end (struct frame * f)
 {
   SetConsoleCursorPosition (cur_screen, cursor_coords);
+  if (!XWINDOW (selected_window)->cursor_off_p
+      && cursor_coords.X < FRAME_COLS (f))
+    w32con_show_cursor ();
+  else
+    w32con_hide_cursor ();
 }
 
 /***********************************************************************