(notice_overwritten_cursor): Fix an off by 1 error.

This commit is contained in:
Gerd Moellmann 2002-04-24 10:30:06 +00:00
parent 68310f2a12
commit f7c5994deb
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-04-24 Gerd Moellmann <gerd@gnu.org>
* xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
2002-04-23 Colin Walters <walters@verbum.org>
* buffer.c (syms_of_buffer): Doc fix.

View file

@ -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;
}