nano

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

commit 0242d84218b8ed973f4f2c946a898018b29abeab
parent 7275e11c4f3b85f028a31dbbc559dfc0977f1b9b
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sun, 28 Aug 2016 18:32:56 +0200

tweaks: make a call in one place instead of in four different ones

And remove a superfluous call.

Diffstat:
Msrc/prompt.c | 11++---------
1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -547,8 +547,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, if (allow_tabs) answer = input_tab(answer, allow_files, &statusbar_x, &tabbed, refresh_func, listed); - - update_the_statusbar(); } else #endif /* !DISABLE_TABCOMP */ #ifndef DISABLE_HISTORIES @@ -566,8 +564,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, statusbar_x = strlen(answer); } - update_the_statusbar(); - /* This key has a shortcut-list entry when it's used to * move to an older search, which means that finished has * been set to TRUE. Set it back to FALSE here, so that @@ -592,8 +588,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, statusbar_x = strlen(answer); } - update_the_statusbar(); - /* This key has a shortcut-list entry when it's used to * move to a newer search, which means that finished has * been set to TRUE. Set it back to FALSE here, so that @@ -603,8 +597,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, } else #endif /* !DISABLE_HISTORIES */ if (func == do_help_void) { - update_the_statusbar(); - /* This key has a shortcut-list entry when it's used to go to * the help browser or display a message indicating that help * is disabled, which means that finished has been set to TRUE. @@ -618,10 +610,11 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, if (finished) break; + update_the_statusbar(); + #if !defined(DISABLE_HISTORIES) && !defined(DISABLE_TABCOMP) last_kbinput = kbinput; #endif - reset_statusbar_cursor(); } #ifndef DISABLE_HISTORIES