Blame SOURCES/7.4.424

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