aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_breakindent.in
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2014-10-11 19:13:35 -0400
committerScott Prager <splinterofchaos@gmail.com>2014-11-11 12:51:58 -0500
commit24ebb018e28187c61900b1616e4f79fec9d70878 (patch)
treead4150d59bafeaf255ce737cb3945a4c9e7ac638 /src/nvim/testdir/test_breakindent.in
parentb1e06c6d60f4947794851982eb73db6ef3b64fbf (diff)
downloadrneovim-24ebb018e28187c61900b1616e4f79fec9d70878.tar.gz
rneovim-24ebb018e28187c61900b1616e4f79fec9d70878.tar.bz2
rneovim-24ebb018e28187c61900b1616e4f79fec9d70878.zip
vim-patch:7.4.416
Problem: Problem with breakindent/showbreak and tabs. Solution: Handle tabs differently. (Christian Brabandt) https://code.google.com/p/vim/source/detail?name=v7-4-416
Diffstat (limited to 'src/nvim/testdir/test_breakindent.in')
-rw-r--r--src/nvim/testdir/test_breakindent.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_breakindent.in b/src/nvim/testdir/test_breakindent.in
index 8f40e4f7e5..79e25f79de 100644
--- a/src/nvim/testdir/test_breakindent.in
+++ b/src/nvim/testdir/test_breakindent.in
@@ -73,6 +73,23 @@ STARTTEST
:let width = strlen(text[1:])+indent(2)*4+strlen(&sbr)*3 " text wraps 3 times
:$put =g:test
:$put =printf(\"strdisplaywidth: %d == calculated: %d\", strdisplaywidth(text), width)
+:"
+:" Test, that the string " a\tb\tc\td\te" is correctly
+:" displayed in a 20 column wide window (see bug report
+:" https://groups.google.com/d/msg/vim_dev/ZOdg2mc9c9Y/TT8EhFjEy0IJ
+:only
+:vert 20new
+:set all& nocp breakindent briopt=min:10
+:call setline(1, [" a\tb\tc\td\te", " z y x w v"])
+:/^\s*a
+fbgjyl:let line1 = @0
+:?^\s*z
+fygjyl:let line2 = @0
+:quit!
+:$put ='Test 12: breakindent with wrapping Tab'
+:$put =line1
+:$put =line2
+:"
:%w! test.out
:qa!
ENDTEST