mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
refactor: remove redundant check for w_p_cole (#17944)
No longer needed after #17890.
This commit is contained in:
@@ -1233,12 +1233,9 @@ static void normal_check_window_scrolled(NormalState *s)
|
||||
static void normal_check_cursor_moved(NormalState *s)
|
||||
{
|
||||
// Trigger CursorMoved if the cursor moved.
|
||||
if (!finish_op && (has_event(EVENT_CURSORMOVED) || curwin->w_p_cole > 0)
|
||||
if (!finish_op && has_event(EVENT_CURSORMOVED)
|
||||
&& !equalpos(curwin->w_last_cursormoved, curwin->w_cursor)) {
|
||||
if (has_event(EVENT_CURSORMOVED)) {
|
||||
apply_autocmds(EVENT_CURSORMOVED, NULL, NULL, false, curbuf);
|
||||
}
|
||||
|
||||
apply_autocmds(EVENT_CURSORMOVED, NULL, NULL, false, curbuf);
|
||||
curwin->w_last_cursormoved = curwin->w_cursor;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user