On 2015-06-07 17:23 -0700, Ian Zimmerman wrote:
Ian> When I start the file browser view explicitly, either by hitting
Ian> the y key or by passing -y on the shell command line, it comes up
Ian> in the "mailboxes only" submode, i.e. things like my header cache
Ian> directory are hidden. (They can be shown by activating the
Ian> toggle-mailboxes function, bound to Tab by default). But when I
Ian> start by hitting c and then ?, so as to show the browser merely as
Ian> a temporary menu of mailboxes to switch to, it comes up with all
Ian> files visible and the toggle key hides the non-mailboxes.
Ian> I find this a very annoying inconsistency. Is there some setting I
Ian> can turn on to make it behave the same in both situations? I'd
Ian> prefer the non-mailboxes always hidden by default, but even always
Ian> shown would be better than the current way.
I think this is in fact a flea, a very small one, to be sure. Patch
attached, relative to 1.5.21; if needed I can certainly rebase it on a
different version.
--
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.
diff --git a/curs_lib.c b/curs_lib.c
index 7f88cc9..6e4e76e 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -559,6 +559,7 @@ int mutt_do_pager (const char *banner,
int _mutt_enter_fname (const char *prompt, char *buf, size_t blen, int *redraw, int buffy, int multiple, char ***files, int *numfiles)
{
event_t ch;
+ int flags;
mvaddstr (LINES-1, 0, (char *) prompt);
addstr (_(" ('?' for list): "));
@@ -577,8 +578,12 @@ int _mutt_enter_fname (const char *prompt, char *buf, size_t blen, int *redraw,
{
mutt_refresh ();
buf[0] = 0;
- _mutt_select_file (buf, blen, M_SEL_FOLDER | (multiple ? M_SEL_MULTI : 0),
- files, numfiles);
+ flags = M_SEL_FOLDER;
+ if (multiple)
+ flags |= M_SEL_MULTI;
+ if (buffy)
+ flags |= M_SEL_BUFFY;
+ _mutt_select_file (buf, blen, flags, files, numfiles);
*redraw = REDRAW_FULL;
}
else