Commit ee1e1888 authored by Thomas Roessler's avatar Thomas Roessler

More file name completion fixes.

parent 261b5e1d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment