forked from aniani/vim
updated for version 7.3.793
Problem: New interactive :substutite behavior is not tested. Solution: Add tests. (Christian Brabandt)
This commit is contained in:
@@ -143,6 +143,21 @@ ENDTEST
|
|||||||
TEST_7:
|
TEST_7:
|
||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
|
:set magic&
|
||||||
|
:set cpo&
|
||||||
|
:$put =\"\n\nTEST_7:\"
|
||||||
|
:$put =substitute('A
|
||||||
|
A', 'A.', '\=submatch(0)', '')
|
||||||
|
:$put =substitute(\"B\nB\", 'B.', '\=submatch(0)', '')
|
||||||
|
/^TEST_8
|
||||||
|
ENDTEST
|
||||||
|
|
||||||
|
TEST_8:
|
||||||
|
|
||||||
|
STARTTEST
|
||||||
|
:set magic&
|
||||||
|
:set cpo&
|
||||||
|
:$put =\"\n\nTEST_8:\"
|
||||||
:$put =',,X'
|
:$put =',,X'
|
||||||
:s/\(^\|,\)\ze\(,\|X\)/\1N/g
|
:s/\(^\|,\)\ze\(,\|X\)/\1N/g
|
||||||
:$put =',,Y'
|
:$put =',,Y'
|
||||||
|
@@ -99,3 +99,9 @@ TEST_7:
|
|||||||
k
|
k
|
||||||
l
|
l
|
||||||
l
|
l
|
||||||
|
|
||||||
|
|
||||||
|
TEST_5:
|
||||||
|
A123456789987654321
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
793,
|
||||||
/**/
|
/**/
|
||||||
792,
|
792,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user