diff --git a/src/prompt.c b/src/prompt.c index c50c729e..4e5293f8 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -802,6 +802,8 @@ int get_prompt_string(bool allow_tabs, const char *curranswer, if (allow_tabs) answer = input_tab(answer, &statusbar_x, &tabbed, list); + + update_statusbar_line(answer, statusbar_x); #endif /* !DISABLE_TABCOMP */ break; case NANO_PREVLINE_KEY: @@ -824,6 +826,8 @@ int get_prompt_string(bool allow_tabs, const char *curranswer, statusbar_x = strlen(answer); } + update_statusbar_line(answer, statusbar_x); + /* 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 @@ -854,6 +858,8 @@ int get_prompt_string(bool allow_tabs, const char *curranswer, answer = mallocstrcpy(answer, magichistory); statusbar_x = strlen(answer); } + + update_statusbar_line(answer, statusbar_x); } #endif /* !NANO_SMALL */ break;