mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4603: sourcing buffer lines is too complicated
Problem: Sourcing buffer lines is too complicated. Solution: Simplify the code. Make it possible to source Vim9 script lines. (Yegappan Lakshmanan, closes #9974)
This commit is contained in:
committed by
Bram Moolenaar
parent
397a87ac1c
commit
85b43c6cb7
@@ -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
|
||||
|
Reference in New Issue
Block a user