X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=browser.c;h=5cfd37e2984c5bca710ff841c70185a5e93865b2;hb=e01486aabea6f0af36933158bd58b9ab03b30add;hp=1692548003ac2d2aa3e5ac049e3107940dcf108c;hpb=7480539010bab6905c944b11b036492a1a625994;p=apps%2Fmadmutt.git diff --git a/browser.c b/browser.c index 1692548..5cfd37e 100644 --- a/browser.c +++ b/browser.c @@ -770,8 +770,8 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, if (imap_is_magic (f, NULL) == M_IMAP) { init_state (&state, NULL); state.imap_browse = 1; - imap_browse (f, &state); - strfcpy (LastDir, state.folder, sizeof (LastDir)); + if (!imap_browse (f, &state)) + strfcpy (LastDir, state.folder, sizeof (LastDir)); } else { #endif