changeset 44815:cf2454d3a103

(update_text_area): Set phys_cursor_on_p to 0 in the case of writing a whole row, more or less analogous to the case of writing only parts of a row.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 24 Apr 2002 17:05:44 +0000
parents 06d704d7ed94
children 2ca17e5f2484
files src/dispnew.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Wed Apr 24 17:03:03 2002 +0000
+++ b/src/dispnew.c	Wed Apr 24 17:05:44 2002 +0000
@@ -4267,6 +4267,16 @@
       /* Clear to end of window.  */
       rif->clear_end_of_line (-1);
       changed_p = 1;
+
+      /* This erases the cursor.  We do this here because
+         notice_overwritten_cursor cannot easily check this, which
+         might indicate that the whole functionality of
+         notice_overwritten_cursor would better be implemented here.
+         On the other hand, we need notice_overwritten_cursor as long
+         as mouse highlighting is done asynchronously outside of
+         redisplay.  */
+      if (vpos == w->phys_cursor.vpos)
+	w->phys_cursor_on_p = 0;
     }
   else
     {