diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-04 09:09:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-04 09:09:22 +0800 |
commit | 700cab00680fa25e0dbdf6f91f638f4da5a09909 (patch) | |
tree | 144c31711e574cdf5eb569a199fd39a4ce77f4b2 /runtime | |
parent | 96e19533f60add50eea4598560bbd56de3b1fca3 (diff) | |
download | rneovim-700cab00680fa25e0dbdf6f91f638f4da5a09909.tar.gz rneovim-700cab00680fa25e0dbdf6f91f638f4da5a09909.tar.bz2 rneovim-700cab00680fa25e0dbdf6f91f638f4da5a09909.zip |
fix(events)!: trigger CursorMoved later on switching window (#23711)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 3 | ||||
-rw-r--r-- | runtime/doc/news.txt | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 01e8cc964d..94a529930e 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -505,8 +505,7 @@ CursorMoved After the cursor was moved in Normal or Visual "x", "rx" or "p". Not always triggered when there is typeahead, while executing commands in a script file, or - when an operator is pending. Always triggered - when moving to another window. + when an operator is pending. For an example see |match-parens|. Note: Cannot be skipped with |:noautocmd|. Careful: This is triggered very often, don't diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index d51227f0c0..f8757af2be 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -30,6 +30,8 @@ The following changes may require adaptations in user config or plugins. set mousemodel=popup set keymodel=startsel,stopsel < +• When switching windows, |CursorMoved| autocommands trigger when Nvim is back + in the main loop rather than immediately. This is more compatible with Vim. • |LspRequest| autocmd was promoted from a |User| autocmd to a first class citizen. |