Commit 8041627c authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: remove a bit of duplication

No related merge requests found
Showing with 4 additions and 7 deletions
+4 -7
......@@ -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();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment