From ee1e188823a1f87832201a0db87420d0c0026c19 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Thu, 14 Dec 2000 13:29:04 +0000 Subject: [PATCH] More file name completion fixes. --- enter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0