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)
diff --git a/src/fileio.c b/src/fileio.c
index f2d2040..b9221ed 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -9009,6 +9009,9 @@
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();
}
}
}