# HG changeset patch # User Chong Yidong # Date 1169422202 0 # Node ID 7267980a2f42b26b544c0ffeac297bec6c82a8f9 # Parent a28e0446640f11c81fda641d9f8b35b59bb20e9c * dispnew.c (update_text_area): Revert 2006-09-17 change. Always redraw non-mode-line rows with mouse-face. diff -r a28e0446640f -r 7267980a2f42 src/dispnew.c --- a/src/dispnew.c Sun Jan 21 23:29:20 2007 +0000 +++ b/src/dispnew.c Sun Jan 21 23:30:02 2007 +0000 @@ -4391,12 +4391,12 @@ || 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);