comparison src/vim9compile.c @ 25346:f874e7095878 v8.2.3210

patch 8.2.3210: Vim9: searchpair() sixth argument is compiled Commit: https://github.com/vim/vim/commit/dd0b287c1ec8314034a2dbb14c4267994c47520c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 24 15:44:30 2021 +0200 patch 8.2.3210: Vim9: searchpair() sixth argument is compiled Problem: Vim9: searchpair() sixth argument is compiled. (Yegappan Lakshmanan) Solution: Only compile the fifth argument.
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jul 2021 15:45:03 +0200
parents d1fcd9c14a93
children d52504ef26ed
comparison
equal deleted inserted replaced
25345:bfa962f1a16f 25346:f874e7095878
3313 instr_count = cctx->ctx_instr.ga_len; 3313 instr_count = cctx->ctx_instr.ga_len;
3314 if (compile_expr0(&p, cctx) == FAIL) 3314 if (compile_expr0(&p, cctx) == FAIL)
3315 return FAIL; 3315 return FAIL;
3316 ++*argcount; 3316 ++*argcount;
3317 3317
3318 if (is_searchpair && *argcount >= 5 3318 if (is_searchpair && *argcount == 5
3319 && cctx->ctx_instr.ga_len == instr_count + 1) 3319 && cctx->ctx_instr.ga_len == instr_count + 1)
3320 { 3320 {
3321 isn_T *isn = ((isn_T *)cctx->ctx_instr.ga_data) + instr_count; 3321 isn_T *isn = ((isn_T *)cctx->ctx_instr.ga_data) + instr_count;
3322 3322
3323 // {skip} argument of searchpair() can be compiled if not empty 3323 // {skip} argument of searchpair() can be compiled if not empty