summaryrefslogtreecommitdiff
path: root/src/testdir/test_autoformat_join.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-04-29 12:15:40 +0200
committerBram Moolenaar <Bram@vim.org>2014-04-29 12:15:40 +0200
commitd69bd9af3ccf5edd2138fb7abd68d35f7b84ef7e (patch)
tree722c4dd7ab344ec2ffc904b229de7aa2dd8c63d8 /src/testdir/test_autoformat_join.in
parent33e87789a740fadcae473c60a00de2a13c55a7d0 (diff)
downloadvim-git-d69bd9af3ccf5edd2138fb7abd68d35f7b84ef7e.tar.gz
updated for version 7.4.267v7.4.267
Problem: The '[ mark is in the wrong position after "gq". (Ingo Karkat) Solution: Add the setmark argument to do_join(). (Christian Brabandt)
Diffstat (limited to 'src/testdir/test_autoformat_join.in')
-rw-r--r--src/testdir/test_autoformat_join.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/testdir/test_autoformat_join.in b/src/testdir/test_autoformat_join.in
new file mode 100644
index 000000000..f1e1c868d
--- /dev/null
+++ b/src/testdir/test_autoformat_join.in
@@ -0,0 +1,23 @@
+Tests for setting the '[,'] marks when joining lines.
+
+STARTTEST
+:so small.vim
+:/^\t\t/
+0gqj
+:let a=string(getpos("'[")).'/'.string(getpos("']"))
+:/^This line/;'}-join
+:let b=string(getpos("'[")).'/'.string(getpos("']"))
+:$put ='First test: Start/End '.string(a)
+:$put ='Second test: Start/End '.string(b)
+:/^\t\t/,$wq! test.out
+ENDTEST
+
+
+ O sodales, ludite, vos qui
+attamen consulite per voster honur. Tua pulchra facies me fay planszer milies
+
+This line.
+Should be joined with the next line
+and with this line
+
+Results: