[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 2fa9699: Fix display of cursor in obscure use case
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 2fa9699: Fix display of cursor in obscure use case on MS-Windows |
Date: |
Sat, 5 Oct 2019 08:03:55 -0400 (EDT) |
branch: master
commit 2fa9699fd795a081420682877fc448ff2391f9bd
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Fix display of cursor in obscure use case on MS-Windows
* src/xdisp.c (redisplay_internal): Detect when the frame
becomes garbaged inside the call to update_frame, and redraw
the frame in that case. (Bug#37579)
---
src/xdisp.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/xdisp.c b/src/xdisp.c
index 9d1fdec..f5dedc2 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -15587,6 +15587,13 @@ redisplay_internal (void)
STOP_POLLING;
pending |= update_frame (f, false, false);
+ /* On some platforms (at least MS-Windows), the
+ scroll_run_hook called from scrolling_window
+ called from update_frame could set the frame's
+ garbaged flag, in which case we need to
+ redisplay the frame. */
+ if (FRAME_GARBAGED_P (f))
+ goto retry_frame;
f->cursor_type_changed = false;
f->updated_p = true;
f->inhibit_clear_image_cache = false;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 2fa9699: Fix display of cursor in obscure use case on MS-Windows,
Eli Zaretskii <=