nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 2289bb7c19e045129ec6ff39256031d116acb03b
parent 746ef8974544475e8e8e59d963975031f6c82605
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 14 Sep 2020 18:53:19 +0200

tweaks: reshuffle two lines and a function name, for a consistent order

Also rewrap a a line.

Diffstat:
Msrc/browser.c | 4++--
Msrc/help.c | 5++---
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/browser.c b/src/browser.c @@ -527,10 +527,10 @@ char *browse(char *path) window_init(); kbinput = KEY_WINCH; #endif - } else if (func == do_search_forward) { - search_filename(FORWARD); } else if (func == do_search_backward) { search_filename(BACKWARD); + } else if (func == do_search_forward) { + search_filename(FORWARD); } else if (func == do_findprevious) { research_filename(BACKWARD); } else if (func == do_findnext) { diff --git a/src/help.c b/src/help.c @@ -475,13 +475,12 @@ void show_help(void) } else if (func == do_up || func == do_scroll_up) { do_scroll_up(); } else if (func == do_down || func == do_scroll_down) { - if (openfile->edittop->lineno + editwinrows - 1 < - openfile->filebot->lineno) + if (openfile->edittop->lineno + editwinrows - 1 < openfile->filebot->lineno) do_scroll_down(); } else if (func == do_page_up || func == do_page_down || func == to_first_line || func == to_last_line) { func(); - } else if (func == do_search_forward || func == do_search_backward || + } else if (func == do_search_backward || func == do_search_forward || func == do_findprevious || func == do_findnext) { func(); bottombars(MHELP);