aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Strittmatter <40792180+smjonas@users.noreply.github.com>2022-08-12 10:21:50 +0200
committerGitHub <noreply@github.com>2022-08-12 10:21:50 +0200
commit1cf3a4b4095913ff9a241c07294af74e573eed54 (patch)
treede425d547a56f95f670854e301862fbc1ad104fb
parent02289ab898575368eeaa234bbd78725f8463044c (diff)
downloadrneovim-1cf3a4b4095913ff9a241c07294af74e573eed54.tar.gz
rneovim-1cf3a4b4095913ff9a241c07294af74e573eed54.tar.bz2
rneovim-1cf3a4b4095913ff9a241c07294af74e573eed54.zip
docs: clarify that cursorline will be disabled before command preview (#19710)
-rw-r--r--runtime/doc/map.txt3
1 files changed, 3 insertions, 0 deletions
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)