mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
vim-patch:7.4.436 #1246
Problem: ml_get error for autocommand that moves the cursor of the current window. Solution: Check the cursor position after switching back to the current buffer. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=v7-4-436
This commit is contained in:

committed by
Justin M. Keyes

parent
97d2fbde73
commit
3195aadf27
@@ -6327,6 +6327,9 @@ win_found:
|
||||
|
||||
curwin = aco->save_curwin;
|
||||
curbuf = curwin->w_buffer;
|
||||
// In case the autocommand moves the cursor to a position that does not
|
||||
// exist in curbuf
|
||||
check_cursor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -196,7 +196,7 @@ static int included_patches[] = {
|
||||
//439,
|
||||
//438,
|
||||
//437,
|
||||
//436,
|
||||
436,
|
||||
//435,
|
||||
//434,
|
||||
//433,
|
||||
|
Reference in New Issue
Block a user