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
2fae87d9
Commit
2fae87d9
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: harmonize some indentations, elide an #ifdef, and rewrap a line
parent
a5b3f00d
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/move.c
+12
-17
src/move.c
with
12 additions
and
17 deletions
+12
-17
src/move.c
View file @
2fae87d9
...
...
@@ -108,8 +108,7 @@ void do_page_down(void)
/* If the cursor is less than a page away from the bottom of the file,
* put it at the end of the last line. */
if
(
openfile
->
current
->
lineno
+
maxrows
-
2
>=
openfile
->
filebot
->
lineno
)
{
if
(
openfile
->
current
->
lineno
+
maxrows
-
2
>=
openfile
->
filebot
->
lineno
)
{
do_last_line
();
return
;
}
...
...
@@ -340,15 +339,11 @@ void do_home(void)
if
(
openfile
->
current_x
==
current_x_save
||
openfile
->
current
->
data
[
openfile
->
current_x
]
==
'\0'
)
openfile
->
current_x
=
0
;
openfile
->
placewewant
=
xplustabs
();
}
else
{
}
else
#endif
openfile
->
current_x
=
0
;
openfile
->
placewewant
=
0
;
#ifndef NANO_TINY
}
#endif
openfile
->
placewewant
=
xplustabs
();
if
(
need_screen_update
(
pww_save
))
update_line
(
openfile
->
current
,
openfile
->
current_x
);
...
...
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