On Sat, 2010-09-25 at 22:12 +0200, Bram Moolenaar wrote:

> You get bonus points if you can make a test that fails before this
> patch.
> 

Attached a test (adding it to test68.vim which tests 'formatoptions')

Carlo

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- a/src/testdir/test68.in
+++ b/src/testdir/test68.in
@@ -51,6 +51,17 @@
 }
 
 STARTTEST
+/^{/+2
+:set tw& fo=a
+I^^
+ENDTEST
+
+{
+   1aa
+   2bb
+}
+
+STARTTEST
 :g/^STARTTEST/.,/^ENDTEST/d
 :1;/^Results/,$wq! test.out
 ENDTEST
--- a/src/testdir/test68.ok
+++ b/src/testdir/test68.ok
@@ -33,3 +33,6 @@
 #a b
 }
 
+
+{ 1aa ^^2bb }
+

Raspunde prin e-mail lui