Mercurial > vim
comparison src/vim9execute.c @ 21933:5edd776d886d v8.2.1516
patch 8.2.1516: Vim9: error for :exe has wrong line number
Commit: https://github.com/vim/vim/commit/430deb1945cbc7a17ed42c5c737fc08d2eef327a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 23 16:29:11 2020 +0200
patch 8.2.1516: Vim9: error for :exe has wrong line number
Problem: Vim9: error for :exe has wrong line number.
Solution: Set line number before calling do_cmdline_cmd(). (closes https://github.com/vim/vim/issues/6774)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Aug 2020 16:30:03 +0200 |
parents | 809b1e7fbd72 |
children | ba2415df82d7 |
comparison
equal
deleted
inserted
replaced
21932:ec8056494ff2 | 21933:5edd776d886d |
---|---|
1060 goto on_error; | 1060 goto on_error; |
1061 | 1061 |
1062 if (ga.ga_data != NULL) | 1062 if (ga.ga_data != NULL) |
1063 { | 1063 { |
1064 if (iptr->isn_type == ISN_EXECUTE) | 1064 if (iptr->isn_type == ISN_EXECUTE) |
1065 { | |
1066 SOURCING_LNUM = iptr->isn_lnum; | |
1065 do_cmdline_cmd((char_u *)ga.ga_data); | 1067 do_cmdline_cmd((char_u *)ga.ga_data); |
1068 } | |
1066 else | 1069 else |
1067 { | 1070 { |
1068 msg_sb_eol(); | 1071 msg_sb_eol(); |
1069 if (iptr->isn_type == ISN_ECHOMSG) | 1072 if (iptr->isn_type == ISN_ECHOMSG) |
1070 { | 1073 { |