[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/window.c
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/src/window.c |
Date: |
Wed, 04 Sep 2002 22:36:23 -0400 |
Index: emacs/src/window.c
diff -c emacs/src/window.c:1.426 emacs/src/window.c:1.427
*** emacs/src/window.c:1.426 Tue Jul 16 09:39:41 2002
--- emacs/src/window.c Wed Sep 4 22:36:22 2002
***************
*** 4653,4658 ****
--- 4653,4667 ----
move_it_vertically (&it, height);
bottom_y = line_bottom_y (&it);
+ /* rms: On a non-window display,
+ the value of it.vpos at the bottom of the screen
+ seems to be 1 larger than window_box_height (w).
+ This kludge fixes a bug whereby (move-to-window-line -1)
+ when ZV is on the last screen line
+ moves to the previous screen line instead of the last one. */
+ if (! FRAME_WINDOW_P (XFRAME (w->frame)))
+ height++;
+
/* Add in empty lines at the bottom of the window. */
if (bottom_y < height)
{
- [Emacs-diffs] Changes to emacs/src/window.c,
Richard M. Stallman <=