diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-03 18:17:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-03 18:17:11 +0200 |
commit | c6538bcc1cdd1fb83732f22fdc69bd9bb66f968a (patch) | |
tree | 80b89c210388f6e038ccbdc346f72a31bffd8430 /src/change.c | |
parent | 749fa0af85232be1d44b77a09161f71cdbace62c (diff) | |
download | vim-git-c6538bcc1cdd1fb83732f22fdc69bd9bb66f968a.tar.gz |
patch 8.1.1800: function call functions have too many argumentsv8.1.1800
Problem: Function call functions have too many arguments.
Solution: Pass values in a funcexe_T struct.
Diffstat (limited to 'src/change.c')
-rw-r--r-- | src/change.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/change.c b/src/change.c index 0f6164b04..f83587d83 100644 --- a/src/change.c +++ b/src/change.c @@ -341,7 +341,6 @@ invoke_listeners(buf_T *buf) { listener_T *lnr; typval_T rettv; - int dummy; typval_T argv[6]; listitem_T *li; linenr_T start = MAXLNUM; @@ -389,8 +388,7 @@ invoke_listeners(buf_T *buf) for (lnr = buf->b_listener; lnr != NULL; lnr = lnr->lr_next) { - call_callback(&lnr->lr_callback, -1, &rettv, - 5, argv, NULL, 0L, 0L, &dummy, TRUE, NULL); + call_callback(&lnr->lr_callback, -1, &rettv, 5, argv); clear_tv(&rettv); } |