mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
cursormoved: always trigger CursorMoved when entering window
This commit is contained in:
parent
357f95a77e
commit
e2839d9633
@ -4256,9 +4256,12 @@ static void win_enter_ext(win_T *wp, bool undo_sync, int curwin_invalid,
|
|||||||
apply_autocmds(EVENT_WINNEW, NULL, NULL, false, curbuf);
|
apply_autocmds(EVENT_WINNEW, NULL, NULL, false, curbuf);
|
||||||
}
|
}
|
||||||
if (trigger_enter_autocmds) {
|
if (trigger_enter_autocmds) {
|
||||||
apply_autocmds(EVENT_WINENTER, NULL, NULL, FALSE, curbuf);
|
apply_autocmds(EVENT_WINENTER, NULL, NULL, false, curbuf);
|
||||||
if (other_buffer)
|
if (other_buffer) {
|
||||||
apply_autocmds(EVENT_BUFENTER, NULL, NULL, FALSE, curbuf);
|
apply_autocmds(EVENT_BUFENTER, NULL, NULL, false, curbuf);
|
||||||
|
}
|
||||||
|
apply_autocmds(EVENT_CURSORMOVED, NULL, NULL, false, curbuf);
|
||||||
|
curwin->w_last_cursormoved = curwin->w_cursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
maketitle();
|
maketitle();
|
||||||
|
Loading…
Reference in New Issue
Block a user