From f7c5994deb832886c5bf808494335a0cb29ae84b Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 24 Apr 2002 10:30:06 +0000 Subject: (notice_overwritten_cursor): Fix an off by 1 error. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xterm.c') 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; } -- cgit v1.2.3