mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.1296
Problem: Cursor changes column with up motion when the matchparen plugin
saves and restores the cursor position. (Martin Kunev)
Solution: Make sure curswant is updated before invoking the autocommand.
f068dcafcf
Applied manually.
Could reproduce the bug with vim/vim@4d8747c but not with vim/vim@2693ca2,
so it must have appeared inbetween. For discussion, see
https://groups.google.com/forum/#!msg/vim_dev/t2sdeFhkybs/WEtLJpCODQAJ
http://vim.1045645.n5.nabble.com/Cursor-behaviour-change-td5726895.html
Could not reproduce with current nvim master.
This commit is contained in:
parent
2d5520fb25
commit
61e25f995c
@ -1359,6 +1359,9 @@ ins_redraw (
|
|||||||
update_screen(0);
|
update_screen(0);
|
||||||
}
|
}
|
||||||
if (has_event(EVENT_CURSORMOVEDI)) {
|
if (has_event(EVENT_CURSORMOVEDI)) {
|
||||||
|
// Make sure curswant is correct, an autocommand may call
|
||||||
|
// getcurpos()
|
||||||
|
update_curswant();
|
||||||
apply_autocmds(EVENT_CURSORMOVEDI, NULL, NULL, false, curbuf);
|
apply_autocmds(EVENT_CURSORMOVEDI, NULL, NULL, false, curbuf);
|
||||||
}
|
}
|
||||||
if (curwin->w_p_cole > 0) {
|
if (curwin->w_p_cole > 0) {
|
||||||
|
@ -382,7 +382,7 @@ static int included_patches[] = {
|
|||||||
// 1299 NA
|
// 1299 NA
|
||||||
// 1298 NA
|
// 1298 NA
|
||||||
// 1297 NA
|
// 1297 NA
|
||||||
// 1296,
|
1296,
|
||||||
// 1295 NA
|
// 1295 NA
|
||||||
// 1294 NA
|
// 1294 NA
|
||||||
// 1293 NA
|
// 1293 NA
|
||||||
|
Loading…
Reference in New Issue
Block a user