patch 8.2.3215: Vim9: argument types are not checked at compile time
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. Sort the argument lists.
(Yegappan Lakshmanan, closes #8626)
diff --git a/src/change.c b/src/change.c
index 73ea64f..ee1bd6f 100644
--- a/src/change.c
+++ b/src/change.c
@@ -241,6 +241,9 @@
listener_T *lnr;
buf_T *buf = curbuf;
+ if (in_vim9script() && check_for_opt_buffer_arg(argvars, 1) == FAIL)
+ return;
+
callback = get_callback(&argvars[0]);
if (callback.cb_name == NULL)
return;