forked from aniani/vim
updated for version 7.4.436
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)
This commit is contained in:
@@ -9009,6 +9009,9 @@ win_found:
|
||||
|
||||
curwin = aco->save_curwin;
|
||||
curbuf = curwin->w_buffer;
|
||||
/* In case the autocommand move the cursor to a position that that
|
||||
* not exist in curbuf. */
|
||||
check_cursor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
436,
|
||||
/**/
|
||||
435,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user