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
e9b2c961
Commit
e9b2c961
authored
Mar 30, 2002
by
Richard M. Stallman
Browse files
(window_scroll_pixel_based): Exit the move_it_by_lines
loop whenever it stops making progress.
parent
de70f8b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/window.c
src/window.c
+6
-1
No files found.
src/window.c
View file @
e9b2c961
...
...
@@ -4154,7 +4154,12 @@ window_scroll_pixel_based (window, n, whole, noerror)
in the scroll margin at the top. */
move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
while (it.current_y < this_scroll_margin)
move_it_by_lines (&it, 1, 1);
{
int prev = it.current_y;
move_it_by_lines (&it, 1, 1);
if (prev == it.current_y)
break;
}
SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it));
}
else if (n < 0)
...
...
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