summaryrefslogtreecommitdiffstats
path: root/enter.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-12-31 11:24:18 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-12-31 11:24:18 +0000
commit88b3020df11224485aae6f907ec99d0111bcc0e8 (patch)
tree524ef3e1fd96ad971fb9ba28e2cb0b1d40bb2b61 /enter.c
parent921e82ceca978a2e8a93c20f8e18477ab52fed17 (diff)
Make browser behaviour more consistent with expectations.
Diffstat (limited to 'enter.c')
-rw-r--r--enter.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/enter.c b/enter.c
index 28ad6447..6f17f3bc 100644
--- a/enter.c
+++ b/enter.c
@@ -1,3 +1,4 @@
+
/*
* Copyright (C) 1996-2000 Michael R. Elkins <me@cs.hmc.edu>
* Copyright (C) 2000 Edmund Grimley Evans <edmundo@rano.org>
@@ -418,7 +419,7 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x,
if (tempbuf && templen == state->lastchar - i &&
!memcmp (tempbuf, state->wbuf + i, (state->lastchar - i) * sizeof (wchar_t)))
{
- mutt_select_file (buf, buflen, 0);
+ mutt_select_file (buf, buflen, (flags & M_EFILE) ? M_SEL_FOLDER : 0);
set_option (OPTNEEDREDRAW);
if (*buf)
replace_part (state, i, buf);
@@ -471,7 +472,9 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x,
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);
+ _mutt_select_file (buf, buflen,
+ ((flags & M_EFILE) ? M_SEL_FOLDER : 0) | (multiple ? M_SEL_MULTI : 0),
+ files, numfiles);
set_option (OPTNEEDREDRAW);
if (*buf)
{