diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval.lua | 6 | ||||
-rw-r--r-- | src/nvim/options.lua | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 687d052d19..4bb82e5b3e 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -380,12 +380,12 @@ M.funcs = { < If {msg} is empty then it is not used. Do this to get the default message when passing the {lnum} argument. - + *E1115* When {lnum} is present and not negative, and the {error} argument is present and matches, then this is compared with the line number at which the error was reported. That can be the line number in a function or in a script. - + *E1116* When {context} is present it is used as a pattern and matched against the context (script name or function name) where {lnum} is located in. @@ -12058,7 +12058,7 @@ M.funcs = { Like |garbagecollect()|, but executed right away. This must only be called directly to avoid any structure to exist internally, and |v:testing| must have been set before calling - any function. + any function. *E1142* ]=], params = {}, signature = 'test_garbagecollect_now()', diff --git a/src/nvim/options.lua b/src/nvim/options.lua index cf97f682f8..7268a4351d 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -1058,6 +1058,14 @@ return { v:fname_in name of the input file v:fname_out name of the output file Note that v:fname_in and v:fname_out will never be the same. + + If the 'charconvert' expression starts with s: or |<SID>|, then it is + replaced with the script ID (|local-function|). Example: >vim + set charconvert=s:MyConvert() + set charconvert=<SID>SomeConvert() + < Otherwise the expression is evaluated in the context of the script + where the option was set, thus script-local items are available. + This option cannot be set from a |modeline| or in the |sandbox|, for security reasons. ]=], |