Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1de65f51
Commit
1de65f51
authored
Sep 05, 2002
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(displayed_window_lines): Correct for one-off bug
in HEIGHT on non-window displays.
parent
77d11aec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/window.c
src/window.c
+9
-0
No files found.
src/window.c
View file @
1de65f51
...
...
@@ -4653,6 +4653,15 @@ displayed_window_lines (w)
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)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment