comparison src/vim9execute.c @ 22262:3f082bd15d29 v8.2.1680

patch 8.2.1680: Vim9: line number for compare error is wrong Commit: https://github.com/vim/vim/commit/eb26f4331f607b1639bf01f4f35ad3ce7d20cb10 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 14 16:50:05 2020 +0200 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 https://github.com/vim/vim/issues/6936)
author Bram Moolenaar <Bram@vim.org>
date Mon, 14 Sep 2020 17:00:03 +0200
parents 939f7184566f
children eb1f5f618c75
comparison
equal deleted inserted replaced
22261:d3e9d86fae88 22262:3f082bd15d29
2124 typval_T *tv1 = STACK_TV_BOT(-2); 2124 typval_T *tv1 = STACK_TV_BOT(-2);
2125 typval_T *tv2 = STACK_TV_BOT(-1); 2125 typval_T *tv2 = STACK_TV_BOT(-1);
2126 exptype_T exptype = iptr->isn_arg.op.op_type; 2126 exptype_T exptype = iptr->isn_arg.op.op_type;
2127 int ic = iptr->isn_arg.op.op_ic; 2127 int ic = iptr->isn_arg.op.op_ic;
2128 2128
2129 SOURCING_LNUM = iptr->isn_lnum;
2129 typval_compare(tv1, tv2, exptype, ic); 2130 typval_compare(tv1, tv2, exptype, ic);
2130 clear_tv(tv2); 2131 clear_tv(tv2);
2131 --ectx.ec_stack.ga_len; 2132 --ectx.ec_stack.ga_len;
2132 } 2133 }
2133 break; 2134 break;