diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-01-27 13:22:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-01-27 13:22:20 +0100 |
commit | 1dc92334eb5e235af338f3b27277157839fa8dcc (patch) | |
tree | a98267d3283a18983296273dc5ecc278978f04a5 /src/testdir | |
parent | e0ad365498399c1bd34dd6361b3f7dc38e84e4ca (diff) | |
download | vim-1dc92334eb5e235af338f3b27277157839fa8dcc.zip |
updated for version 7.4.594
Problem: Using a block delete while 'breakindent' is set does not work
properly.
Solution: Use "line" instead of "prev_pend" as the first argument to
lbr_chartabsize_adv(). (Hirohito Higashi)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_breakindent.in | 17 | ||||
-rw-r--r-- | src/testdir/test_breakindent.ok | 10 |
2 files changed, 27 insertions, 0 deletions
diff --git a/src/testdir/test_breakindent.in b/src/testdir/test_breakindent.in index a255457b2..f9d903e51 100644 --- a/src/testdir/test_breakindent.in +++ b/src/testdir/test_breakindent.in @@ -99,6 +99,23 @@ fygjyl:let line2 = @0 :$put =line1 :$put =line2 :" +:let g:test="Test 14: breakindent + visual blockwise delete #1" +:set all& breakindent +:30vnew +:normal! 3a1234567890 +:normal! a abcde +:exec "normal! 0\<C-V>tex" +:let line1=ScreenChar(line('.'),8) +:call DoRecordScreen() +:" +:let g:test="Test 15: breakindent + visual blockwise delete #2" +:%d +:normal! 4a1234567890 +:exec "normal! >>\<C-V>3f0x" +:let line1=ScreenChar(line('.'),20) +:call DoRecordScreen() +:quit! +:" :%w! test.out :qa! ENDTEST diff --git a/src/testdir/test_breakindent.ok b/src/testdir/test_breakindent.ok index e50265ecd..3eb9c24fd 100644 --- a/src/testdir/test_breakindent.ok +++ b/src/testdir/test_breakindent.ok @@ -62,3 +62,13 @@ strdisplaywidth: 46 == calculated: 64 Test 13: breakindent with wrapping Tab d w + +Test 14: breakindent + visual blockwise delete #1 +e +~ +~ + +Test 15: breakindent + visual blockwise delete #2 + 1234567890 +~ +~ |