From: Thomas Roessler Date: Thu, 14 Dec 2000 13:29:04 +0000 (+0000) Subject: More file name completion fixes. X-Git-Tag: mutt-1-3-13-rel~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee1e188823a1f87832201a0db87420d0c0026c19;p=mutt More file name completion fixes. --- diff --git a/enter.c b/enter.c index 2beeeb0c..fd623694 100644 --- 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);