Commit 0242d842 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

And remove a superfluous call.
parent 7275e11c
Showing with 2 additions and 9 deletions
+2 -9
...@@ -547,8 +547,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, ...@@ -547,8 +547,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
if (allow_tabs) if (allow_tabs)
answer = input_tab(answer, allow_files, &statusbar_x, answer = input_tab(answer, allow_files, &statusbar_x,
&tabbed, refresh_func, listed); &tabbed, refresh_func, listed);
update_the_statusbar();
} else } else
#endif /* !DISABLE_TABCOMP */ #endif /* !DISABLE_TABCOMP */
#ifndef DISABLE_HISTORIES #ifndef DISABLE_HISTORIES
...@@ -566,8 +564,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, ...@@ -566,8 +564,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
statusbar_x = strlen(answer); statusbar_x = strlen(answer);
} }
update_the_statusbar();
/* This key has a shortcut-list entry when it's used to /* This key has a shortcut-list entry when it's used to
* move to an older search, which means that finished has * move to an older search, which means that finished has
* been set to TRUE. Set it back to FALSE here, so that * 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, ...@@ -592,8 +588,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
statusbar_x = strlen(answer); statusbar_x = strlen(answer);
} }
update_the_statusbar();
/* This key has a shortcut-list entry when it's used to /* This key has a shortcut-list entry when it's used to
* move to a newer search, which means that finished has * move to a newer search, which means that finished has
* been set to TRUE. Set it back to FALSE here, so that * 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, ...@@ -603,8 +597,6 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
} else } else
#endif /* !DISABLE_HISTORIES */ #endif /* !DISABLE_HISTORIES */
if (func == do_help_void) { if (func == do_help_void) {
update_the_statusbar();
/* This key has a shortcut-list entry when it's used to go to /* This key has a shortcut-list entry when it's used to go to
* the help browser or display a message indicating that help * the help browser or display a message indicating that help
* is disabled, which means that finished has been set to TRUE. * is disabled, which means that finished has been set to TRUE.
...@@ -618,10 +610,11 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs, ...@@ -618,10 +610,11 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
if (finished) if (finished)
break; break;
update_the_statusbar();
#if !defined(DISABLE_HISTORIES) && !defined(DISABLE_TABCOMP) #if !defined(DISABLE_HISTORIES) && !defined(DISABLE_TABCOMP)
last_kbinput = kbinput; last_kbinput = kbinput;
#endif #endif
reset_statusbar_cursor();
} }
#ifndef DISABLE_HISTORIES #ifndef DISABLE_HISTORIES
......
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