]> granicus.if.org Git - mutt/commitdiff
More file name completion fixes.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 14 Dec 2000 13:29:04 +0000 (13:29 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 14 Dec 2000 13:29:04 +0000 (13:29 +0000)
enter.c

diff --git a/enter.c b/enter.c
index 2beeeb0c68ce0e1ed0d7e2a331f161c2f7f42b47..fd6236947376c5b2b10219ce6a68e7b5d3b31cae 100644 (file)
--- a/enter.c
+++ b/enter.c
@@ -469,7 +469,7 @@ 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 &&
+           if ((!tempbuf && !state->lastchar) || (tempbuf && templen == state->lastchar &&
                !memcmp (tempbuf, state->wbuf, state->lastchar * sizeof (wchar_t))))
            {
              _mutt_select_file (buf, buflen, 0, multiple, files, numfiles);