From 1cf3a4b4095913ff9a241c07294af74e573eed54 Mon Sep 17 00:00:00 2001 From: Jonas Strittmatter <40792180+smjonas@users.noreply.github.com> Date: Fri, 12 Aug 2022 10:21:50 +0200 Subject: docs: clarify that cursorline will be disabled before command preview (#19710) --- runtime/doc/map.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index b0ce2d4164..00e5cc6e27 100644 --- 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) -- cgit