Mercurial > vim
changeset 1041:c3bd0a84e11a v7.0.167
updated for version 7.0-167
author | vimboss |
---|---|
date | Tue, 21 Nov 2006 18:36:05 +0000 |
parents | 65e0c2e3a352 |
children | 932fe018ad16 |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -18539,12 +18539,14 @@ ex_function(eap) if (!eap->skip) { - /* Check the name of the function. */ + /* Check the name of the function. Unless it's a dictionary function + * (that we are overwriting). */ if (name != NULL) arg = name; else arg = fudi.fd_newkey; - if (arg != NULL) + if (arg != NULL && (fudi.fd_di == NULL + || fudi.fd_di->di_tv.v_type != VAR_FUNC)) { if (*arg == K_SPECIAL) j = 3;