0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.0-038

This commit is contained in:
Bram Moolenaar
2006-07-12 19:49:41 +00:00
parent a3f2ecdecb
commit ce6ef25cef
4 changed files with 10 additions and 2 deletions

View File

@@ -8252,6 +8252,12 @@ f_complete(argvars, rettv)
EMSG(_("E785: complete() can only be used in Insert mode"));
return;
}
/* Check for undo allowed here, because if something was already inserted
* the line was already saved for undo and this check isn't done. */
if (!undo_allowed())
return;
if (argvars[1].v_type != VAR_LIST || argvars[1].vval.v_list == NULL)
{
EMSG(_(e_invarg));