diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-06 20:21:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-06 20:21:51 +0000 |
commit | 7b89edc62ddb12b74276567087f58fc015c1f8a0 (patch) | |
tree | 2cbaed44d36d343304a289ddfd3cd6d196143832 /src | |
parent | 8dff818edfb61658b94128111234c3c074c1cadc (diff) |
updated for version 7.0c11v7.0c11
Diffstat (limited to 'src')
-rw-r--r-- | src/ex_cmds.c | 6 | ||||
-rw-r--r-- | src/ex_cmds.h | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 4e7c169763..bf03721786 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -3485,7 +3485,7 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags) foldUpdateAll(curwin); #endif -#if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG) +#ifdef FEAT_AUTOCHDIR if (p_acd && curbuf->b_ffname != NULL && vim_chdirfile(curbuf->b_ffname) == OK) shorten_fnames(TRUE); @@ -3656,12 +3656,14 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags) if (p_im) need_start_insertmode = TRUE; -#if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG) +#ifdef FEAT_AUTOCHDIR /* Change directories when the acd option is set on. */ if (p_acd && curbuf->b_ffname != NULL && vim_chdirfile(curbuf->b_ffname) == OK) shorten_fnames(TRUE); +#endif +#if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG) if (gui.in_use && curbuf->b_ffname != NULL) { # ifdef FEAT_SUN_WORKSHOP diff --git a/src/ex_cmds.h b/src/ex_cmds.h index b6c0e41f55..32e079d3b6 100644 --- a/src/ex_cmds.h +++ b/src/ex_cmds.h @@ -914,19 +914,19 @@ EX(CMD_tabclose, "tabclose", ex_tabclose, EX(CMD_tabdo, "tabdo", ex_listdo, NEEDARG|EXTRA|NOTRLCOM), EX(CMD_tabedit, "tabedit", ex_splitview, - BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR), + BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|TRLBAR), EX(CMD_tabfind, "tabfind", ex_splitview, - BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|NEEDARG|TRLBAR), + BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|NEEDARG|TRLBAR), EX(CMD_tabfirst, "tabfirst", ex_tabnext, TRLBAR), EX(CMD_tabmove, "tabmove", ex_tabmove, - RANGE|NOTADR|COUNT|TRLBAR|ZEROR), + RANGE|NOTADR|ZEROR|COUNT|TRLBAR|ZEROR), EX(CMD_tablast, "tablast", ex_tabnext, TRLBAR), EX(CMD_tabnext, "tabnext", ex_tabnext, RANGE|NOTADR|COUNT|TRLBAR), EX(CMD_tabnew, "tabnew", ex_splitview, - BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR), + BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|TRLBAR), EX(CMD_tabonly, "tabonly", ex_tabonly, BANG|TRLBAR|CMDWIN), EX(CMD_tabprevious, "tabprevious", ex_tabnext, |