To: vim-dev@vim.org Subject: Patch 6.1.261 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.261 Problem: When deleting a line in a buffer which is not the current buffer, using the Perl interface Delete(), the cursor in the current window may move. (Chris Houser) Solution: Don't adjust the cursor position when changing another buffer. Files: src/if_perl.xs *** ../vim61.260/src/if_perl.xs Wed Dec 12 20:59:21 2001 --- src/if_perl.xs Thu Nov 14 20:40:17 2002 *************** *** 1086,1092 **** { ml_delete(lnum, 0); deleted_lines_mark(lnum, 1L); ! check_cursor(); } curbuf = savebuf; update_curbuf(VALID); --- 1086,1093 ---- { ml_delete(lnum, 0); deleted_lines_mark(lnum, 1L); ! if (savebuf == curbuf) ! check_cursor(); } curbuf = savebuf; update_curbuf(VALID); *** ../vim61.260/src/version.c Tue Nov 19 11:56:25 2002 --- src/version.c Tue Nov 19 11:57:55 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 261, /**/ -- hundred-and-one symptoms of being an internet addict: 89. In addition to your e-mail address being on your business cards you even have your own domain. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///