mirror of git://git.sv.gnu.org/nano.git
more miscellaneous minor fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2551 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
40e4acf55e
commit
f1d3d9581a
|
@ -2441,10 +2441,10 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *curranswer,
|
||||||
{
|
{
|
||||||
int kbinput;
|
int kbinput;
|
||||||
bool meta_key, func_key, s_or_t, ran_func, finished;
|
bool meta_key, func_key, s_or_t, ran_func, finished;
|
||||||
size_t curranswer_len = strlen(curranswer);
|
size_t curranswer_len;
|
||||||
#ifndef DISABLE_TABCOMP
|
#ifndef DISABLE_TABCOMP
|
||||||
bool tabbed = FALSE;
|
bool tabbed = FALSE;
|
||||||
/* Whether we've pressed Tab more than once consecutively. */
|
/* Whether we've pressed Tab. */
|
||||||
#endif
|
#endif
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
char *history = NULL;
|
char *history = NULL;
|
||||||
|
@ -2455,6 +2455,7 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *curranswer,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
answer = mallocstrcpy(answer, curranswer);
|
answer = mallocstrcpy(answer, curranswer);
|
||||||
|
curranswer = strlen(answer);
|
||||||
|
|
||||||
/* Only put statusbar_x at the end of the string if it's
|
/* Only put statusbar_x at the end of the string if it's
|
||||||
* uninitialized, if it would be past the end of curranswer, or if
|
* uninitialized, if it would be past the end of curranswer, or if
|
||||||
|
|
Loading…
Reference in New Issue