1
0
forked from aniani/vim

updated for version 7.0182

This commit is contained in:
Bram Moolenaar
2006-01-19 22:16:24 +00:00
parent 05a7bb363b
commit 8ada17c4d9
17 changed files with 200 additions and 144 deletions

View File

@@ -2841,11 +2841,11 @@ check_readonly(forceit, buf)
}
/*
* try to abandon current file and edit a new or existing file
* 'fnum' is the number of the file, if zero use ffname/sfname
* Try to abandon current file and edit a new or existing file.
* 'fnum' is the number of the file, if zero use ffname/sfname.
*
* return 1 for "normal" error, 2 for "not written" error, 0 for success
* -1 for succesfully opening another file
* Return 1 for "normal" error, 2 for "not written" error, 0 for success
* -1 for succesfully opening another file.
* 'lnum' is the line number for the cursor in the new file (if non-zero).
*/
int
@@ -2861,10 +2861,8 @@ getfile(fnum, ffname, sfname, setpm, lnum, forceit)
int retval;
char_u *free_me = NULL;
#ifdef FEAT_CMDWIN
if (cmdwin_type != 0)
if (editing_cmdline())
return 1;
#endif
if (fnum == 0)
{