[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xterm.c
From: |
Kim F. Storm |
Subject: |
[Emacs-diffs] Changes to emacs/src/xterm.c |
Date: |
Wed, 16 Jan 2002 17:55:02 -0500 |
Index: emacs/src/xterm.c
diff -c emacs/src/xterm.c:1.701 emacs/src/xterm.c:1.702
*** emacs/src/xterm.c:1.701 Wed Jan 16 01:48:06 2002
--- emacs/src/xterm.c Wed Jan 16 17:55:00 2002
***************
*** 11396,11401 ****
--- 11396,11407 ----
if (!cursor_row->enabled_p)
goto mark_cursor_off;
+ /* If row is completely invisible, don't attempt to delete a cursor which
+ isn't there. This can happen if cursor is at top of a window, and
+ we switch to a buffer with a header line in that window. */
+ if (cursor_row->visible_height <= 0)
+ goto mark_cursor_off;
+
/* This can happen when the new row is shorter than the old one.
In this case, either x_draw_glyphs or clear_end_of_line
should have cleared the cursor. Note that we wouldn't be
- [Emacs-diffs] Changes to emacs/src/xterm.c, Pavel Janík, 2002/01/12
- [Emacs-diffs] Changes to emacs/src/xterm.c, Andreas Schwab, 2002/01/12
- [Emacs-diffs] Changes to emacs/src/xterm.c, Andreas Schwab, 2002/01/12
- [Emacs-diffs] Changes to emacs/src/xterm.c, Eli Zaretskii, 2002/01/13
- [Emacs-diffs] Changes to emacs/src/xterm.c, Pavel Janík, 2002/01/16
- [Emacs-diffs] Changes to emacs/src/xterm.c,
Kim F. Storm <=
- [Emacs-diffs] Changes to emacs/src/xterm.c, Pavel Janík, 2002/01/27