Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9b869380
Commit
9b869380
authored
Jul 03, 2005
by
Richard M. Stallman
Browse files
(try_window): Fix previous change in how it handles
a partially-visible line or one only partly past the margin.
parent
7ad53239
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/xdisp.c
src/xdisp.c
+5
-5
No files found.
src/xdisp.c
View file @
9b869380
...
...
@@ -12740,11 +12740,11 @@ try_window (window, pos, check_margins)
if ((w->cursor.y < this_scroll_margin
&& CHARPOS (pos) > BEGV)
/*
Old redisplay didn't take scroll margin into account at the bottom,
but then global-hl-line-mode doesn't scroll. KFS 2004-06-14 */
|| (w->cursor.y + (make_cursor_line_ful
ly
_
visible
_p
? cursor_height + this_scroll_margin
:
1)
)
> it.last_visible_y)
/*
rms: considering make_cursor_line_fully_visible_p here
seems to give wrong results. We don't want to recenter
when the last line is part
ly
visible
, we want to allow
that case to be handled in the usual way. */
|| (w->cursor.y +
1) > it.last_visible_y)
{
w->cursor.vpos = -1;
clear_glyph_matrix (w->desired_matrix);
...
...
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