Commit 2fae87d9 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: harmonize some indentations, elide an #ifdef, and rewrap a line

No related merge requests found
Showing with 12 additions and 17 deletions
+12 -17
......@@ -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);
......
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