Mercurial > vim
comparison src/ex_docmd.c @ 461:f98374445f66
updated for version 7.0123
author | vimboss |
---|---|
date | Thu, 04 Aug 2005 21:29:45 +0000 |
parents | 7472c565592a |
children | a5fcf36ef512 |
comparison
equal
deleted
inserted
replaced
460:7f2d3b3c15a2 | 461:f98374445f66 |
---|---|
6663 # ifdef FEAT_VERTSPLIT | 6663 # ifdef FEAT_VERTSPLIT |
6664 && eap->cmdidx != CMD_vnew | 6664 && eap->cmdidx != CMD_vnew |
6665 #endif | 6665 #endif |
6666 && eap->cmdidx != CMD_new) | 6666 && eap->cmdidx != CMD_new) |
6667 { | 6667 { |
6668 fname = do_browse(0, (char_u *)_("Edit File in new window"), | 6668 if ( |
6669 # ifdef FEAT_GUI | |
6670 !gui.in_use && | |
6671 # endif | |
6672 au_has_group((char_u *)"FileExplorer")) | |
6673 { | |
6674 /* No browsing supported but we do have the file explorer: | |
6675 * Edit the directory. */ | |
6676 if (*eap->arg == NUL || !mch_isdir(eap->arg)) | |
6677 eap->arg = (char_u *)"."; | |
6678 } | |
6679 else | |
6680 { | |
6681 fname = do_browse(0, (char_u *)_("Edit File in new window"), | |
6669 eap->arg, NULL, NULL, NULL, curbuf); | 6682 eap->arg, NULL, NULL, NULL, curbuf); |
6670 if (fname == NULL) | 6683 if (fname == NULL) |
6671 goto theend; | 6684 goto theend; |
6672 eap->arg = fname; | 6685 eap->arg = fname; |
6686 } | |
6673 } | 6687 } |
6674 cmdmod.browse = FALSE; /* Don't browse again in do_ecmd(). */ | 6688 cmdmod.browse = FALSE; /* Don't browse again in do_ecmd(). */ |
6675 #endif | 6689 #endif |
6676 | 6690 |
6677 if (win_split(eap->addr_count > 0 ? (int)eap->line2 : 0, | 6691 if (win_split(eap->addr_count > 0 ? (int)eap->line2 : 0, |