From bade65fd579cc2a246f98f94cb8089295d6c3df8 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 16 Sep 1996 06:31:10 +0000 Subject: [PATCH] (note_mouse_highlight): Test last_overlay_modified field. --- src/w32term.c | 3 ++- src/xterm.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/w32term.c b/src/w32term.c index 27a4933b064..f76291b7205 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -1350,7 +1350,8 @@ note_mouse_highlight (f, x, y) if (WINDOWP (window) && portion == 0 && row >= 0 && column >= 0 && row < FRAME_HEIGHT (f) && column < FRAME_WIDTH (f) && EQ (w->window_end_valid, w->buffer) - && w->last_modified == BUF_MODIFF (XBUFFER (w->buffer))) + && w->last_modified == BUF_MODIFF (XBUFFER (w->buffer)) + && w->last_overlay_modified == BUF_OVERLAY_MODIFF (XBUFFER (w->buffer))) { int *ptr = FRAME_CURRENT_GLYPHS (f)->charstarts[row]; int i, pos; diff --git a/src/xterm.c b/src/xterm.c index 595621b4f8a..2be321ef5f3 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1913,7 +1913,8 @@ note_mouse_highlight (f, x, y) if (WINDOWP (window) && portion == 0 && row >= 0 && column >= 0 && row < FRAME_HEIGHT (f) && column < FRAME_WIDTH (f) && EQ (w->window_end_valid, w->buffer) - && w->last_modified == BUF_MODIFF (XBUFFER (w->buffer))) + && w->last_modified == BUF_MODIFF (XBUFFER (w->buffer)) + && w->last_overlay_modified == BUF_OVERLAY_MODIFF (XBUFFER (w->buffer))) { int *ptr = FRAME_CURRENT_GLYPHS (f)->charstarts[row]; int i, pos; -- 2.39.2