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 /src/nvim/window.c | |
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 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index ebfa538afb..7ec0e20515 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -4903,8 +4903,7 @@ static void win_enter_ext(win_T *const wp, const int flags) if (other_buffer) { apply_autocmds(EVENT_BUFENTER, NULL, NULL, false, curbuf); } - apply_autocmds(EVENT_CURSORMOVED, NULL, NULL, false, curbuf); - curwin->w_last_cursormoved = curwin->w_cursor; + curwin->w_last_cursormoved.lnum = 0; } maketitle(); |