Mercurial > vim
comparison src/ex_cmds.c @ 14:946da5994c01
updated for version 7.0006
author | vimboss |
---|---|
date | Mon, 05 Jul 2004 15:58:32 +0000 |
parents | 24d5189d3956 |
children | 631143ac4a01 |
comparison
equal
deleted
inserted
replaced
13:24d5189d3956 | 14:946da5994c01 |
---|---|
1996 exarg_T *eap; | 1996 exarg_T *eap; |
1997 { | 1997 { |
1998 char_u *fname, *sfname, *xfname; | 1998 char_u *fname, *sfname, *xfname; |
1999 buf_T *buf; | 1999 buf_T *buf; |
2000 | 2000 |
2001 if (*eap->arg != NUL) | 2001 /* ":0file" removes the file name. Check for illegal uses ":3file", |
2002 * "0file name", etc. */ | |
2003 if (eap->addr_count > 0 | |
2004 && (*eap->arg != NUL | |
2005 || eap->line2 > 0 | |
2006 || eap->addr_count > 1)) | |
2007 { | |
2008 EMSG(_(e_invarg)); | |
2009 return; | |
2010 } | |
2011 | |
2012 if (*eap->arg != NUL || eap->addr_count == 1) | |
2002 { | 2013 { |
2003 #ifdef FEAT_AUTOCMD | 2014 #ifdef FEAT_AUTOCMD |
2004 buf = curbuf; | 2015 buf = curbuf; |
2005 apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf); | 2016 apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, FALSE, curbuf); |
2006 /* buffer changed, don't change name now */ | 2017 /* buffer changed, don't change name now */ |