mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1680: Vim9: line number for compare error is wrong
Problem: Vim9: line number for compare error is wrong. Solution: Set SOURCING_LNUM. (closes #6936)
This commit is contained in:
@@ -2126,6 +2126,7 @@ call_def_function(
|
||||
exptype_T exptype = iptr->isn_arg.op.op_type;
|
||||
int ic = iptr->isn_arg.op.op_ic;
|
||||
|
||||
SOURCING_LNUM = iptr->isn_lnum;
|
||||
typval_compare(tv1, tv2, exptype, ic);
|
||||
clear_tv(tv2);
|
||||
--ectx.ec_stack.ga_len;
|
||||
|
Reference in New Issue
Block a user