summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index c3c380852..07aacb37c 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -7142,6 +7142,10 @@ compile_def_function(ufunc_T *ufunc, int set_return_type, cctx_T *outer_cctx)
// TODO: other commands with an expression argument
+ case CMD_SIZE:
+ semsg(_("E476: Invalid command: %s"), ea.cmd);
+ goto erret;
+
default:
// Not recognized, execute with do_cmdline_cmd().
ea.arg = p;