Problem: Get ml_get error when using Python to delete lines in a buffer
that is not in a window. issue 248.
Solution: Do not try adjusting the cursor for a different buffer.
break;
}
}
- if (buf == curbuf)
+ if (buf == curbuf && (save_curwin != NULL || save_curbuf == NULL))
+ /* Using an existing window for the buffer, adjust the cursor
+ * position. */
py_fix_cursor((linenr_T)lo, (linenr_T)hi, (linenr_T)-n);
if (save_curbuf == NULL)
/* Only adjust marks if we managed to switch to a window that
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 424,
/**/
423,
/**/