|
Karsten Hopp |
68519f |
To: vim-dev@vim.org
|
|
Karsten Hopp |
68519f |
Subject: Patch 7.1.192
|
|
Karsten Hopp |
68519f |
Fcc: outbox
|
|
Karsten Hopp |
68519f |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
68519f |
Mime-Version: 1.0
|
|
Karsten Hopp |
68519f |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
68519f |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
68519f |
------------
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
Patch 7.1.192
|
|
Karsten Hopp |
68519f |
Problem: With Visual block selection, "s" and typing something, CTRL-C
|
|
Karsten Hopp |
68519f |
doesn't stop Vim from repeating the replacement in other lines,
|
|
Karsten Hopp |
68519f |
like happens for "I".
|
|
Karsten Hopp |
68519f |
Solution: Check for "got_int" to be set.
|
|
Karsten Hopp |
68519f |
Files: src/ops.c
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
*** ../vim-7.1.191/src/ops.c Sat Dec 1 21:12:23 2007
|
|
Karsten Hopp |
68519f |
--- src/ops.c Thu Jan 3 16:26:37 2008
|
|
Karsten Hopp |
68519f |
***************
|
|
Karsten Hopp |
68519f |
*** 2468,2476 ****
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
edit(NUL, FALSE, (linenr_T)count1);
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
! /* if user has moved off this line, we don't know what to do, so do
|
|
Karsten Hopp |
68519f |
! * nothing */
|
|
Karsten Hopp |
68519f |
! if (curwin->w_cursor.lnum != oap->start.lnum)
|
|
Karsten Hopp |
68519f |
return;
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
if (oap->block_mode)
|
|
Karsten Hopp |
68519f |
--- 2468,2477 ----
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
edit(NUL, FALSE, (linenr_T)count1);
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
! /* If user has moved off this line, we don't know what to do, so do
|
|
Karsten Hopp |
68519f |
! * nothing.
|
|
Karsten Hopp |
68519f |
! * Also don't repeat the insert when Insert mode ended with CTRL-C. */
|
|
Karsten Hopp |
68519f |
! if (curwin->w_cursor.lnum != oap->start.lnum || got_int)
|
|
Karsten Hopp |
68519f |
return;
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
if (oap->block_mode)
|
|
Karsten Hopp |
68519f |
***************
|
|
Karsten Hopp |
68519f |
*** 2601,2608 ****
|
|
Karsten Hopp |
68519f |
/*
|
|
Karsten Hopp |
68519f |
* In Visual block mode, handle copying the new text to all lines of the
|
|
Karsten Hopp |
68519f |
* block.
|
|
Karsten Hopp |
68519f |
*/
|
|
Karsten Hopp |
68519f |
! if (oap->block_mode && oap->start.lnum != oap->end.lnum)
|
|
Karsten Hopp |
68519f |
{
|
|
Karsten Hopp |
68519f |
/* Auto-indenting may have changed the indent. If the cursor was past
|
|
Karsten Hopp |
68519f |
* the indent, exclude that indent change from the inserted text. */
|
|
Karsten Hopp |
68519f |
--- 2602,2610 ----
|
|
Karsten Hopp |
68519f |
/*
|
|
Karsten Hopp |
68519f |
* In Visual block mode, handle copying the new text to all lines of the
|
|
Karsten Hopp |
68519f |
* block.
|
|
Karsten Hopp |
68519f |
+ * Don't repeat the insert when Insert mode ended with CTRL-C.
|
|
Karsten Hopp |
68519f |
*/
|
|
Karsten Hopp |
68519f |
! if (oap->block_mode && oap->start.lnum != oap->end.lnum && !got_int)
|
|
Karsten Hopp |
68519f |
{
|
|
Karsten Hopp |
68519f |
/* Auto-indenting may have changed the indent. If the cursor was past
|
|
Karsten Hopp |
68519f |
* the indent, exclude that indent change from the inserted text. */
|
|
Karsten Hopp |
68519f |
*** ../vim-7.1.191/src/version.c Thu Jan 3 16:14:25 2008
|
|
Karsten Hopp |
68519f |
--- src/version.c Thu Jan 3 16:30:07 2008
|
|
Karsten Hopp |
68519f |
***************
|
|
Karsten Hopp |
68519f |
*** 668,669 ****
|
|
Karsten Hopp |
68519f |
--- 668,671 ----
|
|
Karsten Hopp |
68519f |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
68519f |
+ /**/
|
|
Karsten Hopp |
68519f |
+ 192,
|
|
Karsten Hopp |
68519f |
/**/
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
--
|
|
Karsten Hopp |
68519f |
"A mouse can be just as dangerous as a bullet or a bomb."
|
|
Karsten Hopp |
68519f |
(US Representative Lamar Smith, R-Texas)
|
|
Karsten Hopp |
68519f |
|
|
Karsten Hopp |
68519f |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
68519f |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
68519f |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
68519f |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|