mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1047: Vim9: script cannot use line continuation like :def function
Problem: Vim9: script cannot use line continuation like in a :def function. Solution: Pass the getline function pointer to the eval() functions. Use it for addition and multiplication operators.
This commit is contained in:
@@ -1050,6 +1050,15 @@ source_level(void *cookie)
|
||||
{
|
||||
return ((struct source_cookie *)cookie)->level;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the readahead line.
|
||||
*/
|
||||
char_u *
|
||||
source_nextline(void *cookie)
|
||||
{
|
||||
return ((struct source_cookie *)cookie)->nextline;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (defined(MSWIN) && defined(FEAT_CSCOPE)) || defined(HAVE_FD_CLOEXEC)
|
||||
|
Reference in New Issue
Block a user