patch 8.2.3528: 'thesaurus' and 'thesaurusfunc' do not have the same scope
Problem: 'thesaurus' and 'thesaurusfunc' do not have the same scope.
Solution: Make 'thesaurusfunc' global-local.
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index aed0ad4..f884448 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -8027,35 +8027,28 @@
'thesaurus' 'tsr' string (default "")
global or local to buffer |global-local|
List of file names, separated by commas, that are used to lookup words
- for thesaurus completion commands |i_CTRL-X_CTRL-T|.
+ for thesaurus completion commands |i_CTRL-X_CTRL-T|. See
+ |compl-thesaurus|.
- Each line in the file should contain words with similar meaning,
- separated by non-keyword characters (white space is preferred).
- Maximum line length is 510 bytes.
-
- An English word list was added to this github issue:
- https://github.com/vim/vim/issues/629#issuecomment-443293282
- Unpack thesaurus_pkg.zip, put the thesaurus.txt file somewhere, e.g.
- ~/.vim/thesaurus/english.txt, and the 'thesaurus' option to this file
- name.
+ This option is not used if 'thesaurusfunc' is set, either for the
+ buffer or globally.
To include a comma in a file name precede it with a backslash. Spaces
after a comma are ignored, otherwise spaces are included in the file
- name. See |option-backslash| about using backslashes.
- The use of |:set+=| and |:set-=| is preferred when adding or removing
- directories from the list. This avoids problems when a future version
- uses another default.
- Backticks cannot be used in this option for security reasons.
+ name. See |option-backslash| about using backslashes. The use of
+ |:set+=| and |:set-=| is preferred when adding or removing directories
+ from the list. This avoids problems when a future version uses
+ another default. Backticks cannot be used in this option for security
+ reasons.
*'thesaurusfunc'* *tsrfu'*
'thesaurusfunc' 'tsrfu' string (default: empty)
- local to buffer
+ global or local to buffer |global-local|
{not available when compiled without the |+eval|
feature}
This option specifies a function to be used for thesaurus completion
- with CTRL-X CTRL-T. |i_CTRL-X_CTRL-T|
- See |complete-functions| for an explanation of how the function is
- invoked and what it should return.
+ with CTRL-X CTRL-T. |i_CTRL-X_CTRL-T| See |compl-thesaurusfunc|.
+
This option cannot be set from a |modeline| or in the |sandbox|, for
security reasons.