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
8041627c
Commit
8041627c
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: remove a bit of duplication
parent
598e0af7
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
-7
src/move.c
with
4 additions
and
7 deletions
+4
-7
src/move.c
View file @
8041627c
...
...
@@ -580,17 +580,14 @@ void do_right(void)
if
(
openfile
->
current
->
data
[
openfile
->
current_x
]
!=
'\0'
)
openfile
->
current_x
=
move_mbright
(
openfile
->
current
->
data
,
openfile
->
current_x
);
else
if
(
openfile
->
current
!=
openfile
->
filebot
)
{
else
if
(
openfile
->
current
!=
openfile
->
filebot
)
openfile
->
current_x
=
0
;
openfile
->
placewewant
=
0
;
if
(
need_horizontal_scroll
(
was_column
,
0
))
update_line
(
openfile
->
current
,
0
);
do_down_void
();
return
;
}
openfile
->
placewewant
=
xplustabs
();
if
(
need_horizontal_scroll
(
was_column
,
openfile
->
placewewant
))
update_line
(
openfile
->
current
,
openfile
->
current_x
);
if
(
openfile
->
current_x
==
0
)
do_down_void
();
}
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