]> granicus.if.org Git - neomutt/commitdiff
Sort the folders list when browsing an IMAP server (#831)
authorPietro Cerutti <gahr@gahr.ch>
Tue, 10 Oct 2017 09:26:12 +0000 (10:26 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Oct 2017 09:26:12 +0000 (10:26 +0100)
Issue #803

browser.c

index f9d2ba8b4d117942f8e4dde40cf7ad137a94ecc2..5f8174af1d9f0f6dbea15e57af026f8e4cac6365 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -1122,9 +1122,10 @@ void _mutt_select_file(char *f, size_t flen, int flags, char ***files, int *numf
       init_state(&state, NULL);
       state.imap_browse = true;
       if (!imap_browse(f, &state))
+      {
         strfcpy(LastDir, state.folder, sizeof(LastDir));
-      else
         browser_sort(&state);
+      }
     }
     else
     {