summaryrefslogtreecommitdiff
path: root/src/vim9cmds.c
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2022-04-25 12:43:20 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-25 12:43:20 +0100
commit372bcceeee8012ef3fb2f3dbc8132c3a33cb84fc (patch)
treefd5e5a86cf23a018f653097a7c7477c532316a36 /src/vim9cmds.c
parentaf59e34f1bf214ec6f2d0304c1c5b11ecda25a83 (diff)
downloadvim-git-372bcceeee8012ef3fb2f3dbc8132c3a33cb84fc.tar.gz
patch 8.2.4823: concat more than 2 strings in :def function is inefficientv8.2.4823
Problem: Concatenating more than 2 strings in a :def function is inefficient. Solution: Add a count to the CONCAT instruction. (closes #10276)
Diffstat (limited to 'src/vim9cmds.c')
-rw-r--r--src/vim9cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9cmds.c b/src/vim9cmds.c
index a853d9b0b..ad32c32ff 100644
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -2125,7 +2125,7 @@ compile_redir(char_u *line, exarg_T *eap, cctx_T *cctx)
generate_instr_type(cctx, ISN_REDIREND, &t_string);
if (lhs->lhs_append)
- generate_instr_drop(cctx, ISN_CONCAT, 1);
+ generate_CONCAT(cctx, 2);
if (lhs->lhs_has_index)
{