0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.4.424

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.
This commit is contained in:
Bram Moolenaar 2014-08-29 13:49:52 +02:00
parent e4df164692
commit d7408fa0ce
2 changed files with 5 additions and 1 deletions

View File

@ -4196,7 +4196,9 @@ SetBufferLineList(
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

View File

@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
424,
/**/
423,
/**/