mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
updated for version 7.3.645
Problem: No tests for patch 7.3.625 and 7.3.637. Solution: Add more tests for the "gn" command and try/catch. (Christian Brabandt)
This commit is contained in:
@@ -34,7 +34,13 @@ gncsearchmatch/one\_s*two\_s
|
|||||||
gnd
|
gnd
|
||||||
/[a]bcdx
|
/[a]bcdx
|
||||||
:1
|
:1
|
||||||
2gnd
|
2gnd/join
|
||||||
|
/$
|
||||||
|
0gnd
|
||||||
|
/\>\zs
|
||||||
|
0gnd/^
|
||||||
|
gnd$h/\zs
|
||||||
|
gnd
|
||||||
:/^start:/,/^end:/wq! test.out
|
:/^start:/,/^end:/wq! test.out
|
||||||
ENDTEST
|
ENDTEST
|
||||||
|
|
||||||
@@ -57,4 +63,8 @@ foobar
|
|||||||
one
|
one
|
||||||
two
|
two
|
||||||
abcdx | abcdx | abcdx
|
abcdx | abcdx | abcdx
|
||||||
|
join
|
||||||
|
lines
|
||||||
|
zero width pattern
|
||||||
|
delete first and last chars
|
||||||
end:
|
end:
|
||||||
|
@@ -21,4 +21,7 @@ a
|
|||||||
SEARCH:
|
SEARCH:
|
||||||
searchmatch
|
searchmatch
|
||||||
abcdx | | abcdx
|
abcdx | | abcdx
|
||||||
|
join lines
|
||||||
|
zerowidth pattern
|
||||||
|
elete first and last char
|
||||||
end:
|
end:
|
||||||
|
@@ -378,6 +378,16 @@ let l = [0, 1, 2, 3]
|
|||||||
:unlet dict
|
:unlet dict
|
||||||
:call garbagecollect(1)
|
:call garbagecollect(1)
|
||||||
:"
|
:"
|
||||||
|
:" test for patch 7.3.637
|
||||||
|
:let a = 'No error caught'
|
||||||
|
:try|foldopen|catch|let a = matchstr(v:exception,'^[^ ]*')|endtry
|
||||||
|
o=a
|
||||||
|
:"
|
||||||
|
:lang C
|
||||||
|
:redir => a
|
||||||
|
:try|foobar|catch|let a = matchstr(v:exception,'^[^ ]*')|endtry
|
||||||
|
:redir END
|
||||||
|
o=a
|
||||||
:"
|
:"
|
||||||
:"
|
:"
|
||||||
:/^start:/,$wq! test.out
|
:/^start:/,$wq! test.out
|
||||||
|
@@ -115,3 +115,9 @@ caught a:000[3]
|
|||||||
{'a': {'b': 'B'}}
|
{'a': {'b': 'B'}}
|
||||||
Vim(call):E737: a
|
Vim(call):E737: a
|
||||||
{'a': {'b': 'B'}}
|
{'a': {'b': 'B'}}
|
||||||
|
Vim(foldopen):E490:
|
||||||
|
|
||||||
|
|
||||||
|
Error detected while processing :
|
||||||
|
E492: Not an editor command: foobar|catch|let a = matchstr(v:exception,'^[^ ]*')|endtry
|
||||||
|
|
||||||
|
@@ -719,6 +719,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 */
|
||||||
|
/**/
|
||||||
|
645,
|
||||||
/**/
|
/**/
|
||||||
644,
|
644,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user