aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2002-04-24 10:30:06 +0000
committerGerd Moellmann <[email protected]>2002-04-24 10:30:06 +0000
commitf7c5994deb832886c5bf808494335a0cb29ae84b (patch)
treecd9d1233a44e23b4835c31b0a9993e432213724d /src
parent68310f2a121dac224b0104c1526ad05ff0de3202 (diff)
(notice_overwritten_cursor): Fix an off by 1 error.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xterm.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3e77547a6f..b5dabee3d8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2002-04-24 Gerd Moellmann <[email protected]>
+
+ * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
+
2002-04-23 Colin Walters <[email protected]>
* buffer.c (syms_of_buffer): Doc fix.
diff --git a/src/xterm.c b/src/xterm.c
index d0a521d6e3..5b4b211924 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -11249,7 +11249,7 @@ notice_overwritten_cursor (w, area, x0, x1, y0, y1)
exception of the cursor being in the first blank row at
the buffer and window end because update_text_area
doesn't draw that row. */
- if (((y0 >= cy0 && y0 < cy1) || (y1 >= cy0 && y1 < cy1))
+ if (((y0 >= cy0 && y0 < cy1) || (y1 > cy0 && y1 < cy1))
&& w->current_matrix->rows[w->phys_cursor.vpos].displays_text_p)
w->phys_cursor_on_p = 0;
}