4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When replacing a line through Python the cursor may end up beyond
13 Solution: Check the cursor column after replacing the line.
14 Files: src/if_python.c
17 *** ../vim-7.0.208/src/if_python.c Tue Oct 3 15:02:11 2006
18 --- src/if_python.c Tue Mar 6 23:00:53 2007
22 curwin->w_cursor.lnum = lo;
27 changed_cline_bef_curs();
33 changed_bytes((linenr_T)n, 0);
37 + /* Check that the cursor is not beyond the end of the line now. */
38 + if (buf == curwin->w_buffer)
41 if (PyErr_Occurred() || VimErrorCheck())
43 *** ../vim-7.0.208/src/version.c Tue Mar 6 20:27:03 2007
44 --- src/version.c Thu Mar 8 10:16:23 2007
48 { /* Add new patch number below this line */
54 In his lifetime van Gogh painted 486 oil paintings. Oddly enough, 8975
55 of them are to be found in the United States.
57 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
58 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
59 \\\ download, build and distribute -- http://www.A-A-P.org ///
60 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///