mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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)
This commit is contained in:
committed by
Bram Moolenaar
parent
95d2e7634c
commit
36a5b6867b
@@ -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;
|
||||
|
Reference in New Issue
Block a user