]> granicus.if.org Git - neomutt/commitdiff
sidebar: folder may be virtual
authorKarel Zak <kzak@redhat.com>
Mon, 21 Mar 2016 17:09:17 +0000 (18:09 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 4 Apr 2016 15:30:08 +0000 (16:30 +0100)
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 <kzak@redhat.com>
curs_main.c

index e9bd6199f210128059e860416269c5b1afba04cc..8e1172dfc8d31502c8972c09e515c73faf7ed904 100644 (file)
@@ -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)
   {