diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-03-21 19:45:17 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-21 19:45:17 +0000 |
commit | 85b43c6cb7d56919e245622f4e42db6d8bee4194 (patch) | |
tree | 96162d04de08fc6d8a9ae1aa02347f12d6206642 /src/ex_docmd.c | |
parent | 397a87ac1c9857eb0d5ec3add69e3b9ab6b0c77c (diff) | |
download | vim-git-85b43c6cb7d56919e245622f4e42db6d8bee4194.tar.gz |
patch 8.2.4603: sourcing buffer lines is too complicatedv8.2.4603
Problem: Sourcing buffer lines is too complicated.
Solution: Simplify the code. Make it possible to source Vim9 script lines.
(Yegappan Lakshmanan, closes #9974)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 463d84078..c33dcbca0 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2572,7 +2572,7 @@ do_one_cmd( #ifdef FEAT_EVAL // Set flag that any command was executed, used by ex_vim9script(). // Not if this was a command that wasn't executed or :endif. - if (getline_equal(ea.getline, ea.cookie, getsourceline) + if (sourcing_a_script(&ea) && current_sctx.sc_sid > 0 && ea.cmdidx != CMD_endif && (cstack->cs_idx < 0 |