aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorAxel Forsman <axelsfor@gmail.com>2020-01-30 07:34:34 +0100
committerGitHub <noreply@github.com>2020-01-30 07:34:34 +0100
commit2538e615130c7f4baa1029d0be2bc2d7f66cdd7e (patch)
treea8a137e31418582f7c714ab7356ba850ebe233a2 /src/nvim/lua/executor.c
parent4ea5d7d31a0ad43a84d268e6b05193fa27c5e0da (diff)
downloadrneovim-2538e615130c7f4baa1029d0be2bc2d7f66cdd7e.tar.gz
rneovim-2538e615130c7f4baa1029d0be2bc2d7f66cdd7e.tar.bz2
rneovim-2538e615130c7f4baa1029d0be2bc2d7f66cdd7e.zip
Fix shift change callbacks reading bad cursor (#11782)
Sloppy code inherited from Vim caused user scripts to be able to observe the cursor line in an invalid intermediary state, due to Neovim change callbacks being unbuffered unlike Vim listeners. Manifested in Vimscript executed from the callback possibly erroring when `:call`:ing any function, due to the implicit range `curwin->w_cursor.lnum,curwin->w_cursor.lnum` failing validation. Fixed by deferring the call to `changed_lines()` until after `curwin->w_cursor.lnum` gets its correct value.
Diffstat (limited to 'src/nvim/lua/executor.c')
0 files changed, 0 insertions, 0 deletions