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