aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_autoformat_join.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/testdir/test_autoformat_join.in')
-rw-r--r--src/nvim/testdir/test_autoformat_join.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_autoformat_join.in b/src/nvim/testdir/test_autoformat_join.in
new file mode 100644
index 0000000000..f1e1c868d3
--- /dev/null
+++ b/src/nvim/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: