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)
diff --git a/src/structs.h b/src/structs.h
index 1a98004..a83d9ea 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4426,6 +4426,9 @@
char_u *nextline; // if not NULL: line that was read ahead
linenr_T sourcing_lnum; // line number of the source file
int finished; // ":finish" used
+ int source_from_buf;// TRUE if sourcing from current buffer
+ int buf_lnum; // line number in the current buffer
+ garray_T buflines; // lines in the current buffer
#ifdef USE_CRNL
int fileformat; // EOL_UNKNOWN, EOL_UNIX or EOL_DOS
int error; // TRUE if LF found after CR-LF