From 88b3020df11224485aae6f907ec99d0111bcc0e8 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Sun, 31 Dec 2000 11:24:18 +0000 Subject: Make browser behaviour more consistent with expectations. --- enter.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'enter.c') 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 * Copyright (C) 2000 Edmund Grimley Evans @@ -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) { -- cgit v1.2.3