diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-12 09:50:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-12 09:50:17 +0800 |
commit | 58a1ef8e6a93c615379f6fbe7234697bcdc42b3e (patch) | |
tree | c15b5ac2889ceacf923cca47b2954ab291c9dadf /src/nvim/window.c | |
parent | 6c07a189f2d10a533af8a51819ea96c45e0c567e (diff) | |
download | rneovim-58a1ef8e6a93c615379f6fbe7234697bcdc42b3e.tar.gz rneovim-58a1ef8e6a93c615379f6fbe7234697bcdc42b3e.tar.bz2 rneovim-58a1ef8e6a93c615379f6fbe7234697bcdc42b3e.zip |
fix(events): avoid unnecessary CursorMoved (#24675)
Problem: Temporarily changing current window in a script causes
CursorMoved to be triggerd.
Solution: Don't trigger CursorMoved if neither curwin nor cursor
changed between two checks.
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index d6d677de3f..c475169261 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -4943,7 +4943,6 @@ static void win_enter_ext(win_T *const wp, const int flags) if (other_buffer) { apply_autocmds(EVENT_BUFENTER, NULL, NULL, false, curbuf); } - curwin->w_last_cursormoved.lnum = 0; } maketitle(); |