0
0
mirror of https://github.com/vim/vim.git synced 2025-10-09 06:14:17 -04:00

updated for version 7.0123

This commit is contained in:
Bram Moolenaar
2005-08-04 21:32:22 +00:00
parent 1d94f9b30e
commit 0be6e647d1
3 changed files with 45 additions and 9 deletions

View File

@@ -2952,11 +2952,25 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags)
#ifdef FEAT_BROWSE
if (cmdmod.browse)
{
browse_file = do_browse(0, (char_u *)_("Edit File"), ffname,
if (
# ifdef FEAT_GUI
!gui.in_use &&
# endif
au_has_group((char_u *)"FileExplorer"))
{
/* No browsing supported but we do have the file explorer:
* Edit the directory. */
if (ffname == NULL || !mch_isdir(ffname))
ffname = (char_u *)".";
}
else
{
browse_file = do_browse(0, (char_u *)_("Edit File"), ffname,
NULL, NULL, NULL, curbuf);
if (browse_file == NULL)
goto theend;
ffname = browse_file;
if (browse_file == NULL)
goto theend;
ffname = browse_file;
}
}
#endif
/* if no short name given, use ffname for short name */