forked from aniani/vim
patch 9.0.0183: extra space after virtual text when 'linebreak' is set
Problem: Extra space after virtual text when 'linebreak' is set.
Solution: Do not count virtual text when getting linebreak value.
(closes #10884)
This commit is contained in:
@@ -1878,6 +1878,26 @@ func Test_prop_in_linebreak()
|
||||
call delete('XscriptPropLinebreak')
|
||||
endfunc
|
||||
|
||||
func Test_prop_with_linebreak()
|
||||
CheckRunVimInTerminal
|
||||
|
||||
let lines =<< trim END
|
||||
vim9script
|
||||
set linebreak
|
||||
setline(1, 'one twoword')
|
||||
prop_type_add('test', {highlight: 'Special'})
|
||||
prop_add(1, 4, {text: ': virtual text', type: 'test', text_wrap: 'wrap'})
|
||||
END
|
||||
call writefile(lines, 'XscriptPropWithLinebreak')
|
||||
let buf = RunVimInTerminal('-S XscriptPropWithLinebreak', #{rows: 6, cols: 50})
|
||||
call VerifyScreenDump(buf, 'Test_prop_with_linebreak_1', {})
|
||||
call term_sendkeys(buf, "iasdf asdf asdf asdf asdf as\<Esc>")
|
||||
call VerifyScreenDump(buf, 'Test_prop_with_linebreak_2', {})
|
||||
|
||||
call StopVimInTerminal(buf)
|
||||
call delete('XscriptPropWithLinebreak')
|
||||
endfunc
|
||||
|
||||
func Test_prop_after_tab()
|
||||
CheckRunVimInTerminal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user