diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-12-14 13:26:13 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-12-14 13:26:13 +0000 |
commit | 261b5e1df52f873f2807e8617f1b540290cb3ec2 (patch) | |
tree | 13c4dcd574f374f52cf2511e16f274b4718eff94 /enter.c | |
parent | 7453757ea62e6b5f5c5ddfa5e602c49fe9d27a50 (diff) |
Fix "tab-tab" at the change-folder prompt.
Diffstat (limited to 'enter.c')
-rw-r--r-- | enter.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -457,7 +457,7 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x, { my_wcstombs (buf, buflen, state->wbuf, state->curpos); i = strlen (buf); - if (buf[i - 1] == '=' && + if (i && buf[i - 1] == '=' && mutt_var_value_complete (buf, buflen, i)) tabs = 0; else if (!mutt_command_complete (buf, buflen, i, tabs)) @@ -469,8 +469,8 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x, my_wcstombs (buf, buflen, state->wbuf, state->curpos); /* see if the path has changed from the last time */ - if (tempbuf && templen == state->lastchar && - !memcmp (tempbuf, state->wbuf, state->lastchar * sizeof (wchar_t))) + if (!tempbuf || (templen == state->lastchar && + !memcmp (tempbuf, state->wbuf, state->lastchar * sizeof (wchar_t)))) { _mutt_select_file (buf, buflen, 0, multiple, files, numfiles); set_option (OPTNEEDREDRAW); |