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

master
Benno Schulenberg 2016-05-27 21:22:56 +02:00
parent a5b3f00d78
commit 2fae87d9a5
1 changed files with 12 additions and 17 deletions

View File

@ -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);