summaryrefslogtreecommitdiffstats
path: root/runtime/doc/fold.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-23 12:07:04 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-23 12:07:04 +0000
commit6f4754b9f7253d7e4ba527064a24aff1acdb1e8f (patch)
tree2ee504882bd13acef481efb94164afba33a96202 /runtime/doc/fold.txt
parentbcfa11b7dfdfbb4d412dd843a6da3fce68ba2e39 (diff)
Update runtime files
Diffstat (limited to 'runtime/doc/fold.txt')
-rw-r--r--runtime/doc/fold.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/doc/fold.txt b/runtime/doc/fold.txt
index 9fd7f968c6..5bcadda654 100644
--- a/runtime/doc/fold.txt
+++ b/runtime/doc/fold.txt
@@ -1,4 +1,4 @@
-*fold.txt* For Vim version 8.2. Last change: 2021 Jul 13
+*fold.txt* For Vim version 8.2. Last change: 2022 Jan 22
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -511,7 +511,10 @@ Note the use of backslashes to avoid some characters to be interpreted by the
:endfunction
Evaluating 'foldtext' is done in the |sandbox|. The current window is set to
-the window that displays the line. Errors are ignored.
+the window that displays the line. The context is set to the script where the
+option was last set.
+
+Errors are ignored. For debugging set the 'debug' option to "throw".
The default value is |foldtext()|. This returns a reasonable text for most
types of folding. If you don't like it, you can specify your own 'foldtext'