comparison src/vim9execute.c @ 27665:a6ffe874a24b v8.2.4358

patch 8.2.4358: Vim9: line number of exception is not set Commit: https://github.com/vim/vim/commit/90a57168a42048eb7e176a4f9acf607c31e8074f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 12 14:23:17 2022 +0000 patch 8.2.4358: Vim9: line number of exception is not set Problem: Vim9: line number of exception is not set. Solution: Set the line number before throwing an exception. (closes https://github.com/vim/vim/issues/9755)
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Feb 2022 15:30:03 +0100
parents d91be28bbdbb
children 60ac4228a73d
comparison
equal deleted inserted replaced
27664:7ea1e3b0b5ca 27665:a6ffe874a24b
3824 discard_current_exception(); 3824 discard_current_exception();
3825 trycmd->tcd_caught = FALSE; 3825 trycmd->tcd_caught = FALSE;
3826 } 3826 }
3827 } 3827 }
3828 3828
3829 SOURCING_LNUM = iptr->isn_lnum;
3829 if (throw_exception(tv->vval.v_string, ET_USER, NULL) 3830 if (throw_exception(tv->vval.v_string, ET_USER, NULL)
3830 == FAIL) 3831 == FAIL)
3831 { 3832 {
3832 vim_free(tv->vval.v_string); 3833 vim_free(tv->vval.v_string);
3833 goto theend; 3834 goto theend;