diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2007-01-21 23:30:02 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2007-01-21 23:30:02 +0000 |
commit | fee8b690a2ada77306c8fb9d59cc437cb15a4736 (patch) | |
tree | 531a5137e100e996fa4a4f8cbc65a86586e0f262 | |
parent | 234e47aaa32cd0b679318a42b4b387918d58e754 (diff) | |
download | emacs-fee8b690a2ada77306c8fb9d59cc437cb15a4736.tar.gz emacs-fee8b690a2ada77306c8fb9d59cc437cb15a4736.tar.bz2 emacs-fee8b690a2ada77306c8fb9d59cc437cb15a4736.zip |
* dispnew.c (update_text_area): Revert 2006-09-17 change.
Always redraw non-mode-line rows with mouse-face.
-rw-r--r-- | src/dispnew.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 9182f43f744..172f07c663a 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -4391,12 +4391,12 @@ update_text_area (w, vpos) || desired_row->phys_height != current_row->phys_height || desired_row->visible_height != current_row->visible_height || current_row->overlapped_p -#if 0 - /* This causes excessive flickering when mouse is moved across - the mode line. Luckily everything seems to work just fine - without doing this. KFS 2006-09-17. */ - || current_row->mouse_face_p -#endif + /* This next line is necessary for correctly redrawing + mouse-face areas after scrolling and other operations. + However, it causes excessive flickering when mouse is moved + across the mode line. Luckily, turning it off for the mode + line doesn't seem to hurt anything. -- cyd. */ + || (current_row->mouse_face_p && !current_row->mode_line_p) || current_row->x != desired_row->x) { rif->cursor_to (vpos, 0, desired_row->y, desired_row->x); |