073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.424
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.424
073263
Problem:    Get ml_get error when using Python to delete lines in a buffer
073263
	    that is not in a window.  issue 248.
073263
Solution:   Do not try adjusting the cursor for a different buffer.
073263
Files:	    src/if_py_both.h
073263
073263
073263
*** ../vim-7.4.423/src/if_py_both.h	2014-05-07 17:31:32.473182497 +0200
073263
--- src/if_py_both.h	2014-08-29 13:32:18.554434621 +0200
073263
***************
073263
*** 4196,4202 ****
073263
  		    break;
073263
  		}
073263
  	    }
073263
! 	    if (buf == curbuf)
073263
  		py_fix_cursor((linenr_T)lo, (linenr_T)hi, (linenr_T)-n);
073263
  	    if (save_curbuf == NULL)
073263
  		/* Only adjust marks if we managed to switch to a window that
073263
--- 4196,4204 ----
073263
  		    break;
073263
  		}
073263
  	    }
073263
! 	    if (buf == curbuf && (save_curwin != NULL || save_curbuf == NULL))
073263
! 		/* Using an existing window for the buffer, adjust the cursor
073263
! 		 * position. */
073263
  		py_fix_cursor((linenr_T)lo, (linenr_T)hi, (linenr_T)-n);
073263
  	    if (save_curbuf == NULL)
073263
  		/* Only adjust marks if we managed to switch to a window that
073263
*** ../vim-7.4.423/src/version.c	2014-08-29 12:58:38.246430208 +0200
073263
--- src/version.c	2014-08-29 13:36:13.642435134 +0200
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     424,
073263
  /**/
073263
073263
-- 
073263
From "know your smileys":
073263
 :-H	Is missing teeth
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///