]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.424 v7.4.424
authorBram Moolenaar <Bram@vim.org>
Fri, 29 Aug 2014 11:49:52 +0000 (13:49 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 29 Aug 2014 11:49:52 +0000 (13:49 +0200)
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.

src/if_py_both.h
src/version.c

index bf5ea4cf3848cc12bd7e8b3516e916c55f6f147e..5044afbeff30df747480a94037f0425c99f8396f 100644 (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
index d8ed2a03a0e8e28033b567cbf097b410822ff533..a3e113961f97d093110daf91674af6dbb01d436b 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    424,
 /**/
     423,
 /**/