|
Karsten Hopp |
8c02f4 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
8c02f4 |
Subject: patch 7.0.209
|
|
Karsten Hopp |
8c02f4 |
Fcc: outbox
|
|
Karsten Hopp |
8c02f4 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
8c02f4 |
Mime-Version: 1.0
|
|
Karsten Hopp |
8c02f4 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
8c02f4 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
8c02f4 |
------------
|
|
Karsten Hopp |
8c02f4 |
|
|
Karsten Hopp |
8c02f4 |
Patch 7.0.209
|
|
Karsten Hopp |
8c02f4 |
Problem: When replacing a line through Python the cursor may end up beyond
|
|
Karsten Hopp |
8c02f4 |
the end of the line.
|
|
Karsten Hopp |
8c02f4 |
Solution: Check the cursor column after replacing the line.
|
|
Karsten Hopp |
8c02f4 |
Files: src/if_python.c
|
|
Karsten Hopp |
8c02f4 |
|
|
Karsten Hopp |
8c02f4 |
|
|
Karsten Hopp |
8c02f4 |
*** ../vim-7.0.208/src/if_python.c Tue Oct 3 15:02:11 2006
|
|
Karsten Hopp |
8c02f4 |
--- src/if_python.c Tue Mar 6 23:00:53 2007
|
|
Karsten Hopp |
8c02f4 |
***************
|
|
Karsten Hopp |
8c02f4 |
*** 2410,2415 ****
|
|
Karsten Hopp |
8c02f4 |
--- 2410,2417 ----
|
|
Karsten Hopp |
8c02f4 |
curwin->w_cursor.lnum = lo;
|
|
Karsten Hopp |
8c02f4 |
check_cursor();
|
|
Karsten Hopp |
8c02f4 |
}
|
|
Karsten Hopp |
8c02f4 |
+ else
|
|
Karsten Hopp |
8c02f4 |
+ check_cursor_col();
|
|
Karsten Hopp |
8c02f4 |
changed_cline_bef_curs();
|
|
Karsten Hopp |
8c02f4 |
}
|
|
Karsten Hopp |
8c02f4 |
invalidate_botline();
|
|
Karsten Hopp |
8c02f4 |
***************
|
|
Karsten Hopp |
8c02f4 |
*** 2486,2491 ****
|
|
Karsten Hopp |
8c02f4 |
--- 2488,2497 ----
|
|
Karsten Hopp |
8c02f4 |
changed_bytes((linenr_T)n, 0);
|
|
Karsten Hopp |
8c02f4 |
|
|
Karsten Hopp |
8c02f4 |
curbuf = savebuf;
|
|
Karsten Hopp |
8c02f4 |
+
|
|
Karsten Hopp |
8c02f4 |
+ /* Check that the cursor is not beyond the end of the line now. */
|
|
Karsten Hopp |
8c02f4 |
+ if (buf == curwin->w_buffer)
|
|
Karsten Hopp |
8c02f4 |
+ check_cursor_col();
|
|
Karsten Hopp |
8c02f4 |
|
|
Karsten Hopp |
8c02f4 |
if (PyErr_Occurred() || VimErrorCheck())
|
|
Karsten Hopp |
8c02f4 |
return FAIL;
|
|
Karsten Hopp |
8c02f4 |
*** ../vim-7.0.208/src/version.c Tue Mar 6 20:27:03 2007
|
|
Karsten Hopp |
8c02f4 |
--- src/version.c Thu Mar 8 10:16:23 2007
|
|
Karsten Hopp |
8c02f4 |
***************
|
|
Karsten Hopp |
8c02f4 |
*** 668,669 ****
|
|
Karsten Hopp |
8c02f4 |
--- 668,671 ----
|
|
Karsten Hopp |
8c02f4 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
8c02f4 |
+ /**/
|
|
Karsten Hopp |
8c02f4 |
+ 209,
|
|
Karsten Hopp |
8c02f4 |
/**/
|
|
Karsten Hopp |
8c02f4 |
|
|
Karsten Hopp |
8c02f4 |
--
|
|
Karsten Hopp |
8c02f4 |
In his lifetime van Gogh painted 486 oil paintings. Oddly enough, 8975
|
|
Karsten Hopp |
8c02f4 |
of them are to be found in the United States.
|
|
Karsten Hopp |
8c02f4 |
|
|
Karsten Hopp |
8c02f4 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
8c02f4 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
8c02f4 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
8c02f4 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|