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, /* If the cursor is less than a page away from the bottom of the file,
* put it at the end of the last line. */ * put it at the end of the last line. */
if (openfile->current->lineno + maxrows - 2 >= if (openfile->current->lineno + maxrows - 2 >= openfile->filebot->lineno) {
openfile->filebot->lineno) {
do_last_line(); do_last_line();
return; return;
} }
@ -340,15 +339,11 @@ void do_home(void)
if (openfile->current_x == current_x_save || if (openfile->current_x == current_x_save ||
openfile->current->data[openfile->current_x] == '\0') openfile->current->data[openfile->current_x] == '\0')
openfile->current_x = 0; openfile->current_x = 0;
} else
openfile->placewewant = xplustabs();
} else {
#endif #endif
openfile->current_x = 0; openfile->current_x = 0;
openfile->placewewant = 0;
#ifndef NANO_TINY openfile->placewewant = xplustabs();
}
#endif
if (need_screen_update(pww_save)) if (need_screen_update(pww_save))
update_line(openfile->current, openfile->current_x); update_line(openfile->current, openfile->current_x);