1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00

(note_mouse_highlight): Test last_overlay_modified field.

This commit is contained in:
Richard M. Stallman 1996-09-16 06:31:10 +00:00
parent 3cd2152366
commit bade65fd57
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;