From: Karel Zak Date: Mon, 21 Mar 2016 17:09:17 +0000 (+0100) Subject: sidebar: folder may be virtual X-Git-Tag: neomutt-20160404~13^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4ba3983e93ac78aa9145dc9efae5e271e33ac76;p=neomutt sidebar: folder may be virtual 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: https://github.com/neomutt/neomutt/issues/7 Signed-off-by: Karel Zak --- diff --git a/curs_main.c b/curs_main.c index e9bd6199f..8e1172dfc 100644 --- a/curs_main.c +++ b/curs_main.c @@ -599,8 +599,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) {