commit 1cf3a4b4095913ff9a241c07294af74e573eed54
parent 02289ab898575368eeaa234bbd78725f8463044c
Author: Jonas Strittmatter <40792180+smjonas@users.noreply.github.com>
Date: Fri, 12 Aug 2022 10:21:50 +0200
docs: clarify that cursorline will be disabled before command preview (#19710)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
@@ -1452,6 +1452,9 @@ Incremental preview ~
Commands can show an 'inccommand' (as-you-type) preview by defining a preview
handler (only from Lua, see |nvim_create_user_command()|).
+Before the preview callback is executed, Nvim will temporarily disable
+'cursorline' and 'cursorcolumn' to avoid highlighting issues.
+
The preview callback must be a Lua function with this signature: >
function cmdpreview(opts, ns, buf)