summaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-21 16:31:11 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-21 16:31:11 +0000
commite70dd11ef41f69bd5e94f630194e6b3c4f3f2102 (patch)
tree52b2b8861caa9630a3dcd58e9f217a1b675515e7 /src/fold.c
parent6517f14165cdebf83a07ab9d4aeeb102b4e16e92 (diff)
downloadvim-git-e70dd11ef41f69bd5e94f630194e6b3c4f3f2102.tar.gz
patch 8.2.4173: cannot use an import in 'foldexpr'v8.2.4173
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.
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fold.c b/src/fold.c
index f314d7a34..2a45d2108 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -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)