From cfa1338fb02666637310966a29ad7d5e7bf69505 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 23 Jun 2014 20:22:42 +0000 Subject: [PATCH] Normalizing the indentation in do_help(). git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5017 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/help.c | 42 +++++++++++++++++++++--------------------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/ChangeLog b/ChangeLog index 28d4c1c9..a7c6acc5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ functions 'tofiles','gotodir' and 'flipnewbuffer', and correct the description of 'gototext' (not being about the file browser). * 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 * src/browser.c (parse_browser_input), src/help.c (parse_help_input): diff --git a/src/help.c b/src/help.c index 09f97871..a52a9e4a 100644 --- a/src/help.c +++ b/src/help.c @@ -127,9 +127,9 @@ void do_help(void (*refresh_func)(void)) #ifndef DISABLE_MOUSE if (kbinput == KEY_MOUSE) { - int mouse_x, mouse_y; - get_mouseinput(&mouse_x, &mouse_y, TRUE); - continue; /* Redraw the screen. */ + int mouse_x, mouse_y; + get_mouseinput(&mouse_x, &mouse_y, TRUE); + continue; /* Redraw the screen. */ } #endif @@ -142,31 +142,31 @@ void do_help(void (*refresh_func)(void)) continue; if (f->scfunc == total_refresh) { - total_redraw(); + total_redraw(); } else if (f->scfunc == do_page_up) { - if (line > editwinrows - 2) - line -= editwinrows - 2; - else - line = 0; + if (line > editwinrows - 2) + line -= editwinrows - 2; + else + line = 0; } else if (f->scfunc == do_page_down) { - if (line + (editwinrows - 1) < last_line) - line += editwinrows - 2; + if (line + (editwinrows - 1) < last_line) + line += editwinrows - 2; } else if (f->scfunc == do_up_void) { - if (line > 0) - line--; + if (line > 0) + line--; } else if (f->scfunc == do_down_void) { - if (line + (editwinrows - 1) < last_line) - line++; + if (line + (editwinrows - 1) < last_line) + line++; } else if (f->scfunc == do_first_line) { - if (meta_key) - line = 0; + if (meta_key) + line = 0; } else if (f->scfunc == do_last_line) { - if (meta_key) { - if (line + (editwinrows - 1) < last_line) - line = last_line - (editwinrows - 1); - } + if (meta_key) { + if (line + (editwinrows - 1) < last_line) + line = last_line - (editwinrows - 1); + } } else if (f->scfunc == do_exit) { - /* Abort the help browser. */ + /* Exit from the help browser. */ break; } }