Skip to content

Commit

Permalink
sidebar: folder may be virtual
Browse files Browse the repository at this point in the history
The code assumes that sidebar has clue about all folders, but in
notmuch support may generate virtual folders on the fly from
notmuch queries.

Addresses: neomutt/neomutt#7
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Mar 21, 2016
1 parent bd0f67e commit 8c824f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions curs_main.c
Expand Up @@ -598,8 +598,7 @@ static int main_change_folder(MUTTMENU *menu, int op, char *buf, size_t bufsz,
{
mutt_expand_path (buf, bufsz);
#ifdef USE_SIDEBAR
if (sb_set_open_buffy (buf) == NULL)
return -1;
sb_set_open_buffy (buf);
#endif
if (mx_get_magic (buf) <= 0)
{
Expand Down

0 comments on commit 8c824f5

Please sign in to comment.