summaryrefslogtreecommitdiffstats
path: root/browser.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-09-04 10:49:46 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-09-04 10:49:46 +0000
commit643690a1274d0598ee973b272c934bb147e6cda4 (patch)
tree441d9f1613dd75bd8dc460fc2b247bd1a4246190 /browser.c
parent3b9b910c6db2443ea544613578e1a604b38b6071 (diff)
patch-bac.imapurl-4
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/browser.c b/browser.c
index 0f2a7f82..c30bea45 100644
--- a/browser.c
+++ b/browser.c
@@ -677,6 +677,7 @@ void _mutt_select_file (char *f, size_t flen, int buffy,
else if (state.imap_browse)
{
int n;
+ ciss_url_t url;
strfcpy (LastDir, state.entry[menu->current].name,
sizeof (LastDir));
@@ -684,7 +685,8 @@ void _mutt_select_file (char *f, size_t flen, int buffy,
n = strlen (LastDir)+1;
/* special case "" needs no delimiter */
- if ((strlen (strchr (LastDir, '}')) > 0) &&
+ url_parse_ciss (&url, state.entry[menu->current].name);
+ if (url.path &&
(state.entry[menu->current].delim != '\0') &&
(n < sizeof (LastDir)))
{