aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro+github@gmail.com>2019-03-31 15:13:38 +0200
committerGitHub <noreply@github.com>2019-03-31 15:13:38 +0200
commit4c4a57015687df67c9bf48b721ab81e295f39118 (patch)
treecd4f677f17ce19e65d9cc2dfb7fe5cf276076e48 /src/nvim/edit.c
parent11f03ee3f3da623440607220b8167a3b797d9daa (diff)
parent33d4c381315412b52e3e2867d37ac0851e3d0faf (diff)
downloadrneovim-4c4a57015687df67c9bf48b721ab81e295f39118.tar.gz
rneovim-4c4a57015687df67c9bf48b721ab81e295f39118.tar.bz2
rneovim-4c4a57015687df67c9bf48b721ab81e295f39118.zip
Merge #9807 from mhinz/window-local-last-cursormoved
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 7b31fa0c76..e6d9dcf092 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -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.