]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.645 v7.3.645
authorBram Moolenaar <Bram@vim.org>
Wed, 29 Aug 2012 14:55:13 +0000 (16:55 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 29 Aug 2012 14:55:13 +0000 (16:55 +0200)
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)

src/testdir/test53.in
src/testdir/test53.ok
src/testdir/test55.in
src/testdir/test55.ok
src/version.c

index cc333c7a1f3afbe74026c8bf8e43d475eb429ee1..be76b05c1cac5a2e552f76098b8f97f3384092d8 100644 (file)
@@ -34,7 +34,13 @@ gncsearchmatch\e/one\_s*two\_s
 gnd
 /[a]bcdx
 :1
-2gnd
+2gnd/join
+/$
+0gnd
+/\>\zs
+0gnd/^
+gnd$h/\zs
+gnd
 :/^start:/,/^end:/wq! test.out
 ENDTEST
 
@@ -57,4 +63,8 @@ foobar
 one
 two
 abcdx | abcdx | abcdx
+join 
+lines
+zero width pattern
+delete first and last chars
 end:
index 4f1e5a671e366112ac7d90d8193136a9ba07d02f..928caff7c05b310064768bb5dc5404e7c781e526 100644 (file)
@@ -21,4 +21,7 @@ a
 SEARCH:
 searchmatch
 abcdx |  | abcdx
+join lines
+zerowidth pattern
+elete first and last char
 end:
index cf85f57a6c4434f51fe9232e92736db0990627a0..f255e33e4ea44118cf9f4cb6c0e78f84740a39b7 100644 (file)
@@ -378,6 +378,16 @@ let l = [0, 1, 2, 3]
 :unlet dict
 :call garbagecollect(1)
 :"
+:" test for patch 7.3.637
+:let a = 'No error caught'
+:try|foldopen|catch|let a = matchstr(v:exception,'^[^ ]*')|endtry
+o\12=a\r\e:"
+:lang C
+:redir => a
+:try|foobar|catch|let a = matchstr(v:exception,'^[^ ]*')|endtry
+:redir END
+o\12=a\r\e:"
+:"
 :/^start:/,$wq! test.out
 ENDTEST
 
index fde085ce76ac92a8f5c6a339985072807a258db7..7375007a7081ba642f9406b2c83d8633175b890d 100644 (file)
@@ -115,3 +115,9 @@ caught a:000[3]
 {'a': {'b': 'B'}}
 Vim(call):E737: a
 {'a': {'b': 'B'}}
+Vim(foldopen):E490:
+
+
+Error detected while processing :
+E492: Not an editor command: foobar|catch|let a = matchstr(v:exception,'^[^ ]*')|endtry
+
index 70bcc99263cf5210ef29ee23ae761eb55be18080..f30551b8675e1e31ec9053029cdc9f424c5c13cb 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    645,
 /**/
     644,
 /**/