nano

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

commit ea9d03f135440e2d0da129bf2c06f0f6744bcc2d
parent e19449ec50ac7e91cd5f1b11e5d53960308ecf8b
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Tue,  8 Nov 2005 01:49:14 +0000

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

Diffstat:
Msrc/prompt.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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;