* src/prompt.c (do_prompt): Remove a superfluous free.
* src/prompt.c (update_the_bar): Bundle some statements.
* src/prompt.c (need_statusbar_update): Elide this function.
+ * src/prompt.c (total_statusbar_refresh): Elide this function too.
2016-01-22 Benno Schulenberg <bensberg@justemail.net>
* src/utils.c (get_homedir): Don't use $HOME when we're root, because
if (have_shortcut) {
if (s->scfunc == do_tab || s->scfunc == do_enter)
;
- else if (s->scfunc == total_refresh)
- total_statusbar_refresh(refresh_func);
- else if (s->scfunc == do_cut_text_void) {
+ else if (s->scfunc == total_refresh) {
+ total_redraw();
+ refresh_func();
+ } else if (s->scfunc == do_cut_text_void) {
/* If we're using restricted mode, the filename
* isn't blank, and we're at the "Write File"
* prompt, disable Cut. */
update_statusbar_line(answer, statusbar_x);
}
-/* Unconditionally redraw the entire screen, and then refresh it using
- * refresh_func(). */
-void total_statusbar_refresh(void (*refresh_func)(void))
-{
- total_redraw();
- refresh_func();
-}
-
/* Get a string of input at the statusbar prompt. This should only be
* called from do_prompt(). */
functionptrtype get_prompt_string(int *actual, bool allow_tabs,