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
77a1a5c3
Commit
77a1a5c3
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: reshuffle some ifdefs, for less fragmentation
parent
bc8bb7e9
master
feature/match-parens
refactor/readbility
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/move.c
+9
-12
src/move.c
with
9 additions
and
12 deletions
+9
-12
src/move.c
View file @
77a1a5c3
...
...
@@ -501,26 +501,23 @@ void do_down(bool scroll_only)
* smooth scrolling mode, or down half a page if we're not. If
* scroll_only is TRUE, scroll the edit window down one line
* unconditionally. */
if
(
openfile
->
current_y
==
editwinrows
-
1
#ifndef NANO_TINY
||
amount
>
0
||
scroll_only
#endif
)
{
#ifndef NANO_TINY
if
(
openfile
->
current_y
==
editwinrows
-
1
||
amount
>
0
||
scroll_only
)
{
if
(
amount
<
1
||
scroll_only
)
amount
=
1
;
#endif
edit_scroll
(
DOWNWARD
,
#ifndef NANO_TINY
(
ISSET
(
SMOOTH_SCROLL
)
||
scroll_only
)
?
amount
:
#endif
editwinrows
/
2
+
1
);
edit_scroll
(
DOWNWARD
,
(
ISSET
(
SMOOTH_SCROLL
)
||
scroll_only
)
?
amount
:
editwinrows
/
2
+
1
);
if
(
ISSET
(
SOFTWRAP
))
{
refresh_needed
=
TRUE
;
return
;
}
}
#else
if
(
openfile
->
current_y
==
editwinrows
-
1
)
edit_scroll
(
DOWNWARD
,
editwinrows
/
2
+
1
);
#endif
}
/* If the lines weren't already redrawn, see if they need to be. */
if
(
openfile
->
current_y
<
editwinrows
-
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