aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-12 09:50:17 +0800
committerGitHub <noreply@github.com>2023-08-12 09:50:17 +0800
commit58a1ef8e6a93c615379f6fbe7234697bcdc42b3e (patch)
treec15b5ac2889ceacf923cca47b2954ab291c9dadf /runtime
parent6c07a189f2d10a533af8a51819ea96c45e0c567e (diff)
downloadrneovim-58a1ef8e6a93c615379f6fbe7234697bcdc42b3e.tar.gz
rneovim-58a1ef8e6a93c615379f6fbe7234697bcdc42b3e.tar.bz2
rneovim-58a1ef8e6a93c615379f6fbe7234697bcdc42b3e.zip
fix(events): avoid unnecessary CursorMoved (#24675)
Problem: Temporarily changing current window in a script causes CursorMoved to be triggerd. Solution: Don't trigger CursorMoved if neither curwin nor cursor changed between two checks.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/vim_diff.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 15bb13d5a9..9569c38b85 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -455,7 +455,7 @@ coerced to strings. See |id()| for more details, currently it uses
|c_CTRL-R| pasting a non-special register into |cmdline| omits the last <CR>.
-|CursorMoved| always triggers when moving between windows.
+|CursorMoved| triggers when moving between windows.
Lua interface (|lua.txt|):