static char OldLastDir[_POSIX_PATH_MAX] = "";
static char LastDir[_POSIX_PATH_MAX] = "";
-static char LastDirBackup[_POSIX_PATH_MAX] = "";
/* Frees up the memory allocated for the local-global variables. */
static void destroy_state (struct browser_state *state)
memset (&state, 0, sizeof (struct browser_state));
- if (!folder)
- strfcpy (LastDirBackup, LastDir, sizeof (LastDirBackup));
-
#ifdef USE_NNTP
if (option (OPTNEWS))
{
else
#endif
{
- if (!folder)
+ if (!*LastDir)
getcwd (LastDir, sizeof (LastDir));
- else
+ if (folder)
{
/* Whether we use the tracking feature of the browser depends
* on which sort method we chose to use. This variable is defined
bail:
- if (!folder)
- strfcpy (LastDir, LastDirBackup, sizeof (LastDir));
if (GotoSwapper[0])
GotoSwapper[0] = '\0';
}
files = NULL;
if (_mutt_enter_fname (prompt, fname, sizeof (fname),
- &menu->redraw, 0, 1, &files, &numfiles, 0) == -1 ||
+ &menu->redraw, 0, 1, &files, &numfiles, MUTT_SEL_MULTI) == -1 ||
*fname == '\0')
break;