mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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.
This commit is contained in:
@@ -3315,7 +3315,7 @@ compile_arguments(char_u **arg, cctx_T *cctx, int *argcount, int is_searchpair)
|
||||
return FAIL;
|
||||
++*argcount;
|
||||
|
||||
if (is_searchpair && *argcount >= 5
|
||||
if (is_searchpair && *argcount == 5
|
||||
&& cctx->ctx_instr.ga_len == instr_count + 1)
|
||||
{
|
||||
isn_T *isn = ((isn_T *)cctx->ctx_instr.ga_data) + instr_count;
|
||||
|
Reference in New Issue
Block a user