diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-03-19 12:56:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-19 12:56:51 +0000 |
commit | 36a5b6867bb6c0bd69c8da7d788000ab8a0b0ab0 (patch) | |
tree | fbf0b74c593ab218dc3c66856d13edb2695128b1 /src/eval.c | |
parent | 95d2e7634ccd8e0da78086002509a856999e180c (diff) | |
download | vim-git-36a5b6867bb6c0bd69c8da7d788000ab8a0b0ab0.tar.gz |
patch 8.2.4594: need to write script to a file to be able to source themv8.2.4594
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)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 8d1e4fdf7..a963a15c0 100644 --- a/src/eval.c +++ b/src/eval.c @@ -140,7 +140,7 @@ fill_evalarg_from_eap(evalarg_T *evalarg, exarg_T *eap, int skip) if (eap != NULL) { evalarg->eval_cstack = eap->cstack; - if (getline_equal(eap->getline, eap->cookie, getsourceline)) + if (sourcing_a_script(eap)) { evalarg->eval_getline = eap->getline; evalarg->eval_cookie = eap->cookie; |