aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2019-03-28 20:49:19 +0100
committerMarco Hinz <mh.codebro@gmail.com>2019-03-29 10:58:53 +0100
commit357f95a77eb799a6714117e50d9f06d72e9c0eaf (patch)
tree002396593f325146aec3c6e27522471f35bb1f21 /src/nvim/misc1.c
parentf6fb370b1bcc5f87c72b14c5eb4f29521ab06163 (diff)
downloadrneovim-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/misc1.c')
-rw-r--r--src/nvim/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index d06fa8f762..e5c22e5be3 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -2175,7 +2175,7 @@ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume, long xtra
/* when the cursor line is changed always trigger CursorMoved */
if (lnum <= curwin->w_cursor.lnum
&& lnume + (xtra < 0 ? -xtra : xtra) > curwin->w_cursor.lnum)
- last_cursormoved.lnum = 0;
+ curwin->w_last_cursormoved.lnum = 0;
}
/*