From: David Lawrence Ramsey Date: Tue, 8 Nov 2005 01:49:14 +0000 (+0000) Subject: make sure we refresh the statusbar prompt text when tab-completing or X-Git-Tag: v1.3.10~146 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ea9d03f135440e2d0da129bf2c06f0f6744bcc2d;p=nano.git make sure we refresh the statusbar prompt text when tab-completing or moving through history git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3100 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- 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;