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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
d4aaac0f
Commit
d4aaac0f
authored
Jun 19, 2010
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xdisp.c (try_scrolling): Fix last change.
parent
ad5a12b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/xdisp.c
src/xdisp.c
+6
-3
No files found.
src/xdisp.c
View file @
d4aaac0f
...
@@ -13436,14 +13436,17 @@ try_scrolling (window, just_this_one_p, scroll_conservatively,
...
@@ -13436,14 +13436,17 @@ try_scrolling (window, just_this_one_p, scroll_conservatively,
the user limited scrolling by a small number of lines, but
the user limited scrolling by a small number of lines, but
always finds PT if scroll_conservatively is set to a large
always finds PT if scroll_conservatively is set to a large
number, such as most-positive-fixnum. */
number, such as most-positive-fixnum. */
int slack = min (scroll_max, 10 * FRAME_LINE_HEIGHT (f));
int slack = max (scroll_max, 10 * FRAME_LINE_HEIGHT (f));
int y_to_move =
slack >= INT_MAX - it.last_visible_y
? INT_MAX
: it.last_visible_y + slack;
/* Compute the distance from the scroll margin to PT or to
/* Compute the distance from the scroll margin to PT or to
the scroll limit, whichever comes first. This should
the scroll limit, whichever comes first. This should
include the height of the cursor line, to make that line
include the height of the cursor line, to make that line
fully visible. */
fully visible. */
move_it_to (&it, PT, -1,
move_it_to (&it, PT, -1, y_to_move,
it.last_visible_y + slack,
-1, MOVE_TO_POS | MOVE_TO_Y);
-1, MOVE_TO_POS | MOVE_TO_Y);
dy = line_bottom_y (&it) - y0;
dy = line_bottom_y (&it) - y0;
...
...
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