diff options
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/dumps/Test_textprop_tab.dump | 6 | ||||
-rw-r--r-- | src/testdir/test_textprop.vim | 20 |
2 files changed, 26 insertions, 0 deletions
diff --git a/src/testdir/dumps/Test_textprop_tab.dump b/src/testdir/dumps/Test_textprop_tab.dump new file mode 100644 index 000000000..a1b77055c --- /dev/null +++ b/src/testdir/dumps/Test_textprop_tab.dump @@ -0,0 +1,6 @@ +| +0&#ffffff0@6> |x+0&#ffff4012@2| +0&#ffffff0@63 +|x| @6|x+0&#ffff4012@2| +0&#ffffff0@63 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +| +0#0000000&@56|1|,|1|-|8| @8|A|l@1| diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim index 08c079cfa..36eeb709b 100644 --- a/src/testdir/test_textprop.vim +++ b/src/testdir/test_textprop.vim @@ -759,6 +759,26 @@ func Test_textprop_screenshot_visual() call RunTestVisualBlock(4, '02') endfunc +func Test_textprop_after_tab() + let lines =<< trim END + call setline(1, [ + \ "\txxx", + \ "x\txxx", + \ ]) + hi SearchProp ctermbg=yellow + call prop_type_add('search', {'highlight': 'SearchProp'}) + call prop_add(1, 2, {'length': 3, 'type': 'search'}) + call prop_add(2, 3, {'length': 3, 'type': 'search'}) + END + call writefile(lines, 'XtestPropTab') + let buf = RunVimInTerminal('-S XtestPropTab', {'rows': 6}) + call VerifyScreenDump(buf, 'Test_textprop_tab', {}) + + " clean up + call StopVimInTerminal(buf) + call delete('XtestPropTab') +endfunc + " Adding a text property to a new buffer should not fail func Test_textprop_empty_buffer() call prop_type_add('comment', {'highlight': 'Search'}) |