emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/mac/src/macterm.c


From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/mac/src/macterm.c
Date: Mon, 28 Jan 2002 17:56:00 -0500

Index: emacs/mac/src/macterm.c
diff -c emacs/mac/src/macterm.c:1.18 emacs/mac/src/macterm.c:1.19
*** emacs/mac/src/macterm.c:1.18        Sat Jan 12 10:17:59 2002
--- emacs/mac/src/macterm.c     Mon Jan 28 17:55:59 2002
***************
*** 8458,8463 ****
--- 8458,8469 ----
    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]