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