mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.4173: cannot use an import in 'foldexpr'
Problem: Cannot use an import in 'foldexpr'. Solution: Set the script context to where 'foldexpr' was set. (closes #9584) Fix that the script context was not set for all buffers.
This commit is contained in:
@@ -3307,7 +3307,7 @@ foldlevelExpr(fline_T *flp)
|
||||
// KeyTyped may be reset to 0 when calling a function which invokes
|
||||
// do_cmdline(). To make 'foldopen' work correctly restore KeyTyped.
|
||||
save_keytyped = KeyTyped;
|
||||
n = eval_foldexpr(flp->wp->w_p_fde, &c);
|
||||
n = eval_foldexpr(flp->wp, &c);
|
||||
KeyTyped = save_keytyped;
|
||||
|
||||
switch (c)
|
||||
|
Reference in New Issue
Block a user