mirror of
https://github.com/neovim/neovim.git
synced 2025-11-24 19:20:39 +00:00
Merge #9807 from mhinz/window-local-last-cursormoved
This commit is contained in:
@@ -1398,7 +1398,7 @@ ins_redraw (
|
||||
// Trigger CursorMoved if the cursor moved. Not when the popup menu is
|
||||
// visible, the command might delete it.
|
||||
if (ready && (has_event(EVENT_CURSORMOVEDI) || curwin->w_p_cole > 0)
|
||||
&& !equalpos(last_cursormoved, curwin->w_cursor)
|
||||
&& !equalpos(curwin->w_last_cursormoved, curwin->w_cursor)
|
||||
&& !pum_visible()) {
|
||||
// Need to update the screen first, to make sure syntax
|
||||
// highlighting is correct after making a change (e.g., inserting
|
||||
@@ -1414,7 +1414,7 @@ ins_redraw (
|
||||
ins_apply_autocmds(EVENT_CURSORMOVEDI);
|
||||
}
|
||||
conceal_cursor_moved = true;
|
||||
last_cursormoved = curwin->w_cursor;
|
||||
curwin->w_last_cursormoved = curwin->w_cursor;
|
||||
}
|
||||
|
||||
// Trigger TextChangedI if changedtick differs.
|
||||
|
||||
Reference in New Issue
Block a user