summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-29 22:06:30 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-29 22:06:30 +0100
commitcc390ff5b2c8725c55b961b24322c470659ede9f (patch)
treeb79b29bf770a6de9d484accad77cee9ac41bcec6 /runtime
parentdd58923c6bcb026de7134d9874e69e0a2b01682d (diff)
patch 8.2.0335: no completion for :disassemblev8.2.0335
Problem: No completion for :disassemble. Solution: Make completion work. Also complete script-local functions if the name starts with "s:".
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/vim9.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index d634f22fdd..3ba92dbcaf 100644
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -149,6 +149,12 @@ with `substitute(` this will use the function, prepend a colon to use the
command instead: >
:substitute(pattern (replacement (
+Note that while variables need to be defined before they can be used,
+functions can be called before being defined. This is required to be able
+have cyclic dependencies between functions. It is slightly less efficient,
+since the function has to be looked up by name. And a typo in the function
+name will only be found when the call is executed.
+
No curly braces expansion ~
@@ -275,6 +281,8 @@ script, then script-local variables must be accessed with the "s:" prefix.
*:disa* *:disassemble*
:disa[ssemble] {func} Show the instructions generated for {func}.
This is for debugging and testing.
+ Note that for command line completion of {func} you
+ can prepend "s:" to find script-local functions.
==============================================================================