patch 8.2.4594: need to write script to a file to be able to source them
Problem: Need to write script to a file to be able to source them.
Solution: Make ":source" use lines from the current buffer. (Yegappan
Lakshmanan et al., closes #9967)
diff --git a/src/alloc.c b/src/alloc.c
index 19f8fcd..e6e2633 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -845,7 +845,7 @@
void
ga_concat_len(garray_T *gap, char_u *s, size_t len)
{
- if (s == NULL || *s == NUL)
+ if (s == NULL || *s == NUL || len == 0)
return;
if (ga_grow(gap, (int)len) == OK)
{