Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
4c476bc8
Commit
4c476bc8
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
scrolling: use a comparison that will work also in softwrap mode
This fixes
https://savannah.gnu.org/bugs/?49467
.
parent
9c2e270b
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/move.c
+4
-6
src/move.c
with
4 additions
and
6 deletions
+4
-6
src/move.c
View file @
4c476bc8
...
...
@@ -438,12 +438,10 @@ void do_up(bool scroll_only)
openfile
->
current_x
=
actual_x
(
openfile
->
current
->
data
,
openfile
->
placewewant
);
/* If scroll_only is FALSE and if we're on the first line of the
* edit window, scroll the edit window up one line if we're in
* smooth scrolling mode, or up half a page if we're not. If
* scroll_only is TRUE, scroll the edit window up one line
* unconditionally. */
if
(
openfile
->
current_y
==
0
||
scroll_only
)
/* When the cursor was on the first line of the edit window (or when just
* scrolling without moving the cursor), scroll the edit window up -- one
* line if we're in smooth scrolling mode, and half a page otherwise. */
if
(
openfile
->
current
->
next
==
openfile
->
edittop
||
scroll_only
)
edit_scroll
(
UPWARD
,
(
ISSET
(
SMOOTH_SCROLL
)
||
scroll_only
)
?
1
:
editwinrows
/
2
+
1
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help