patch 8.2.3706: text property highlighting is used on Tab
Problem: Text property highlighting is used on Tab.
Solution: Only set in_linebreak when not on a Tab. (closes #9242)
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index 546e2d6..cc5d219 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -1633,6 +1633,24 @@
call delete('XscriptPropLinebreak')
endfunc
+func Test_prop_after_tab()
+ CheckRunVimInTerminal
+
+ let lines =<< trim END
+ set breakindent linebreak breakat+=]
+ call setline(1, "\t[xxx]")
+ call prop_type_add('test', #{highlight: 'ErrorMsg'})
+ call prop_add(1, 2, #{length: 1, type: 'test'})
+ END
+ call writefile(lines, 'XscriptPropAfterTab')
+ let buf = RunVimInTerminal('-S XscriptPropAfterTab', #{rows: 10})
+ call TermWait(buf)
+ call VerifyScreenDump(buf, 'Test_prop_after_tab', {})
+
+ call StopVimInTerminal(buf)
+ call delete('XscriptPropAfterTab')
+endfunc
+
" Buffer number of 0 should be ignored, as if the parameter wasn't passed.
def Test_prop_bufnr_zero()
new