summaryrefslogtreecommitdiff
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2002-04-24 17:06:09 +0000
committerGerd Moellmann <gerd@gnu.org>2002-04-24 17:06:09 +0000
commit60f2f3f1de2b48cf48d70f0ccb27978f7c628f69 (patch)
tree758cd296b6ed129ba9420927c97a8171d3ceba5e /src/dispnew.c
parent4398e6736e74c34f99dc43571b244ba2eb4791fb (diff)
downloademacs-60f2f3f1de2b48cf48d70f0ccb27978f7c628f69.tar.gz
(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.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index be075171c44..f19f111a728 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -4267,6 +4267,16 @@ update_text_area (w, vpos)
/* 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
{