patch 8.2.0335: no completion for :disassemble
Problem: No completion for :disassemble.
Solution: Make completion work. Also complete script-local functions if the
name starts with "s:".
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index d634f22..3ba92db 100644
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -149,6 +149,12 @@
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 @@
*: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.
==============================================================================