diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2014-11-12 16:23:27 -0500 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-12 16:23:27 -0500 |
| commit | c5d7d75bb10a3d41bd2c502b010f2148c5e7b796 (patch) | |
| tree | b23951aaf36aa1a376d55384422f0efd6b95bf78 /src/nvim/testdir | |
| parent | 205ac8d176f67514e3bc8fa069c8e7d92be69094 (diff) | |
| parent | c92e649a1ef9846ec86b09acc8d92f30b1c1d5db (diff) | |
| download | rneovim-c5d7d75bb10a3d41bd2c502b010f2148c5e7b796.tar.gz rneovim-c5d7d75bb10a3d41bd2c502b010f2148c5e7b796.tar.bz2 rneovim-c5d7d75bb10a3d41bd2c502b010f2148c5e7b796.zip | |
Merge pull request #1283 from splinterofchaos/breakindent-tab
vim-patch:7.4.416 + vim-patch:7.4.417
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_breakindent.in | 18 | ||||
| -rw-r--r-- | src/nvim/testdir/test_breakindent.ok | 3 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_breakindent.in b/src/nvim/testdir/test_breakindent.in index 8f40e4f7e5..150c9430db 100644 --- a/src/nvim/testdir/test_breakindent.in +++ b/src/nvim/testdir/test_breakindent.in @@ -27,6 +27,7 @@ STARTTEST : $put =g:line1 : wincmd p :endfu +:set briopt=min:0 :let g:test="Test 1: Simple breakindent" :let line1=ScreenChar(8) :call DoRecordScreen() @@ -73,6 +74,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 diff --git a/src/nvim/testdir/test_breakindent.ok b/src/nvim/testdir/test_breakindent.ok index 723cb25012..d89d424fb3 100644 --- a/src/nvim/testdir/test_breakindent.ok +++ b/src/nvim/testdir/test_breakindent.ok @@ -53,3 +53,6 @@ Test 4: Simple breakindent + min width: 18 Test 11: strdisplaywidth when breakindent is on strdisplaywidth: 46 == calculated: 64 +Test 12: breakindent with wrapping Tab +d +w |