mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.803
Problem: Substitute with confirmation and then "q" does not replace anything. (John McGowan) Solution: Do not break the loop, skip to the end.
This commit is contained in:
parent
fa13eef3c9
commit
11cb6e6e13
@ -4878,7 +4878,7 @@ do_sub(eap)
|
|||||||
goto skip;
|
goto skip;
|
||||||
}
|
}
|
||||||
if (got_quit)
|
if (got_quit)
|
||||||
break;
|
goto skip;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Move the cursor to the start of the match, so that we can
|
/* Move the cursor to the start of the match, so that we can
|
||||||
|
@ -153,11 +153,22 @@ STARTTEST
|
|||||||
:s/\(^\|,\)\ze\(,\|Y\)/\1N/gc
|
:s/\(^\|,\)\ze\(,\|Y\)/\1N/gc
|
||||||
a:$put =',,Z'
|
a:$put =',,Z'
|
||||||
:s/\(^\|,\)\ze\(,\|Z\)/\1N/gc
|
:s/\(^\|,\)\ze\(,\|Z\)/\1N/gc
|
||||||
yy/^TEST_9
|
yy/^TEST_9:
|
||||||
ENDTEST
|
ENDTEST
|
||||||
|
|
||||||
TEST_9:
|
TEST_9:
|
||||||
|
|
||||||
|
STARTTEST
|
||||||
|
:set magic&
|
||||||
|
:set cpo&
|
||||||
|
:$put =\"\n\nTEST_9:\"
|
||||||
|
:$put ='xxx'
|
||||||
|
:s/x/X/gc
|
||||||
|
yyq/^TEST_10:
|
||||||
|
ENDTEST
|
||||||
|
|
||||||
|
TEST_10:
|
||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:/^Results/,$wq! test.out
|
:/^Results/,$wq! test.out
|
||||||
ENDTEST
|
ENDTEST
|
||||||
|
@ -105,3 +105,7 @@ TEST_8:
|
|||||||
N,,NX
|
N,,NX
|
||||||
N,,NY
|
N,,NY
|
||||||
N,,NZ
|
N,,NZ
|
||||||
|
|
||||||
|
|
||||||
|
TEST_9:
|
||||||
|
XXx
|
||||||
|
@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
803,
|
||||||
/**/
|
/**/
|
||||||
802,
|
802,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user