Commit 00b293bf authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: adjust some braces and indentations

No related merge requests found
Showing with 7 additions and 9 deletions
+7 -9
...@@ -56,9 +56,9 @@ void do_page_up(void) ...@@ -56,9 +56,9 @@ void do_page_up(void)
* put it at the beginning of the first line. */ * put it at the beginning of the first line. */
if (openfile->current->lineno == 1 || ( if (openfile->current->lineno == 1 || (
#ifndef NANO_TINY #ifndef NANO_TINY
!ISSET(SOFTWRAP) && !ISSET(SOFTWRAP) &&
#endif #endif
openfile->current->lineno <= editwinrows - 2)) { openfile->current->lineno <= editwinrows - 2)) {
do_first_line(); do_first_line();
return; return;
} }
...@@ -66,13 +66,12 @@ void do_page_up(void) ...@@ -66,13 +66,12 @@ void do_page_up(void)
/* If we're not in smooth scrolling mode, put the cursor at the /* If we're not in smooth scrolling mode, put the cursor at the
* beginning of the top line of the edit window, as Pico does. */ * beginning of the top line of the edit window, as Pico does. */
#ifndef NANO_TINY #ifndef NANO_TINY
if (!ISSET(SMOOTH_SCROLL)) { if (!ISSET(SMOOTH_SCROLL))
#endif #endif
{
openfile->current = openfile->edittop; openfile->current = openfile->edittop;
openfile->placewewant = openfile->current_y = 0; openfile->placewewant = openfile->current_y = 0;
#ifndef NANO_TINY
} }
#endif
for (i = editwinrows - 2; i - skipped > 0 && openfile->current != for (i = editwinrows - 2; i - skipped > 0 && openfile->current !=
openfile->fileage; i--) { openfile->fileage; i--) {
...@@ -93,7 +92,7 @@ void do_page_up(void) ...@@ -93,7 +92,7 @@ void do_page_up(void)
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "do_page_up: openfile->current->lineno = %lu, skipped = %d\n", fprintf(stderr, "do_page_up: openfile->current->lineno = %lu, skipped = %d\n",
(unsigned long)openfile->current->lineno, skipped); (unsigned long)openfile->current->lineno, skipped);
#endif #endif
/* Scroll the edit window up a page. */ /* Scroll the edit window up a page. */
...@@ -116,13 +115,12 @@ void do_page_down(void) ...@@ -116,13 +115,12 @@ void do_page_down(void)
/* If we're not in smooth scrolling mode, put the cursor at the /* If we're not in smooth scrolling mode, put the cursor at the
* beginning of the top line of the edit window, as Pico does. */ * beginning of the top line of the edit window, as Pico does. */
#ifndef NANO_TINY #ifndef NANO_TINY
if (!ISSET(SMOOTH_SCROLL)) { if (!ISSET(SMOOTH_SCROLL))
#endif #endif
{
openfile->current = openfile->edittop; openfile->current = openfile->edittop;
openfile->placewewant = openfile->current_y = 0; openfile->placewewant = openfile->current_y = 0;
#ifndef NANO_TINY
} }
#endif
for (i = maxrows - 2; i > 0 && openfile->current != for (i = maxrows - 2; i > 0 && openfile->current !=
openfile->filebot; i--) { openfile->filebot; i--) {
......
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