From 700cab00680fa25e0dbdf6f91f638f4da5a09909 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 4 Jun 2023 09:09:22 +0800 Subject: fix(events)!: trigger CursorMoved later on switching window (#23711) --- src/nvim/window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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(); -- cgit