Commit cfa1338f authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Normalizing the indentation in do_help().

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5017 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 22 additions and 21 deletions
+22 -21
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
functions 'tofiles','gotodir' and 'flipnewbuffer', and correct functions 'tofiles','gotodir' and 'flipnewbuffer', and correct
the description of 'gototext' (not being about the file browser). the description of 'gototext' (not being about the file browser).
* doc/syntax/nanorc.nanorc: Show Ins and Del as valid rebindable keys. * doc/syntax/nanorc.nanorc: Show Ins and Del as valid rebindable keys.
* src/help.c (do_help): Normalize the indentation.
2014-06-22 Benno Schulenberg <bensberg@justemail.net> 2014-06-22 Benno Schulenberg <bensberg@justemail.net>
* src/browser.c (parse_browser_input), src/help.c (parse_help_input): * src/browser.c (parse_browser_input), src/help.c (parse_help_input):
......
...@@ -127,9 +127,9 @@ void do_help(void (*refresh_func)(void)) ...@@ -127,9 +127,9 @@ void do_help(void (*refresh_func)(void))
#ifndef DISABLE_MOUSE #ifndef DISABLE_MOUSE
if (kbinput == KEY_MOUSE) { if (kbinput == KEY_MOUSE) {
int mouse_x, mouse_y; int mouse_x, mouse_y;
get_mouseinput(&mouse_x, &mouse_y, TRUE); get_mouseinput(&mouse_x, &mouse_y, TRUE);
continue; /* Redraw the screen. */ continue; /* Redraw the screen. */
} }
#endif #endif
...@@ -142,31 +142,31 @@ void do_help(void (*refresh_func)(void)) ...@@ -142,31 +142,31 @@ void do_help(void (*refresh_func)(void))
continue; continue;
if (f->scfunc == total_refresh) { if (f->scfunc == total_refresh) {
total_redraw(); total_redraw();
} else if (f->scfunc == do_page_up) { } else if (f->scfunc == do_page_up) {
if (line > editwinrows - 2) if (line > editwinrows - 2)
line -= editwinrows - 2; line -= editwinrows - 2;
else else
line = 0; line = 0;
} else if (f->scfunc == do_page_down) { } else if (f->scfunc == do_page_down) {
if (line + (editwinrows - 1) < last_line) if (line + (editwinrows - 1) < last_line)
line += editwinrows - 2; line += editwinrows - 2;
} else if (f->scfunc == do_up_void) { } else if (f->scfunc == do_up_void) {
if (line > 0) if (line > 0)
line--; line--;
} else if (f->scfunc == do_down_void) { } else if (f->scfunc == do_down_void) {
if (line + (editwinrows - 1) < last_line) if (line + (editwinrows - 1) < last_line)
line++; line++;
} else if (f->scfunc == do_first_line) { } else if (f->scfunc == do_first_line) {
if (meta_key) if (meta_key)
line = 0; line = 0;
} else if (f->scfunc == do_last_line) { } else if (f->scfunc == do_last_line) {
if (meta_key) { if (meta_key) {
if (line + (editwinrows - 1) < last_line) if (line + (editwinrows - 1) < last_line)
line = last_line - (editwinrows - 1); line = last_line - (editwinrows - 1);
} }
} else if (f->scfunc == do_exit) { } else if (f->scfunc == do_exit) {
/* Abort the help browser. */ /* Exit from the help browser. */
break; break;
} }
} }
......
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