summaryrefslogtreecommitdiffstats
path: root/enter.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-12-14 13:29:04 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-12-14 13:29:04 +0000
commitee1e188823a1f87832201a0db87420d0c0026c19 (patch)
tree317e153ad4ec32471a451798f2eb6e9c1cb01af5 /enter.c
parent261b5e1df52f873f2807e8617f1b540290cb3ec2 (diff)
More file name completion fixes.
Diffstat (limited to 'enter.c')
-rw-r--r--enter.c2
1 files changed, 1 insertions, 1 deletions
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);