diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2019-03-28 20:49:19 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2019-03-29 10:58:53 +0100 |
commit | 357f95a77eb799a6714117e50d9f06d72e9c0eaf (patch) | |
tree | 002396593f325146aec3c6e27522471f35bb1f21 /src/nvim/edit.c | |
parent | f6fb370b1bcc5f87c72b14c5eb4f29521ab06163 (diff) | |
download | rneovim-357f95a77eb799a6714117e50d9f06d72e9c0eaf.tar.gz rneovim-357f95a77eb799a6714117e50d9f06d72e9c0eaf.tar.bz2 rneovim-357f95a77eb799a6714117e50d9f06d72e9c0eaf.zip |
cursormoved: make global last_cursormoved window-local
Fixes https://github.com/neovim/neovim/issues/9755
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index a0dce5ff7d..5947b6b1b0 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -1376,7 +1376,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 @@ -1392,7 +1392,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. |