mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.0183
This commit is contained in:
@@ -2583,11 +2583,19 @@ do_write(eap)
|
||||
retval = FAIL;
|
||||
goto theend;
|
||||
}
|
||||
|
||||
/* If 'filetype' was empty try detecting it now. */
|
||||
if (*curbuf->b_p_ft == NUL)
|
||||
{
|
||||
(void)do_doautocmd((char_u *)"filetypedetect BufRead", TRUE);
|
||||
do_modelines(FALSE);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
retval = buf_write(curbuf, ffname, fname, eap->line1, eap->line2,
|
||||
eap, eap->append, eap->forceit, TRUE, FALSE);
|
||||
|
||||
}
|
||||
|
||||
theend:
|
||||
@@ -2861,7 +2869,7 @@ getfile(fnum, ffname, sfname, setpm, lnum, forceit)
|
||||
int retval;
|
||||
char_u *free_me = NULL;
|
||||
|
||||
if (editing_cmdline())
|
||||
if (text_locked())
|
||||
return 1;
|
||||
|
||||
if (fnum == 0)
|
||||
|
Reference in New Issue
Block a user