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
Этот коммит содержится в:
родитель
e19449ec50
Коммит
ea9d03f135
@ -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;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user