comparison src/testdir/test_textprop.vim @ 29686:4153e4815b36 v9.0.0183

patch 9.0.0183: extra space after virtual text when 'linebreak' is set Commit: https://github.com/vim/vim/commit/52de3a8d3943520bbd4e5e40a4c43fcc7182dac0 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 10 13:12:03 2022 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 10 Aug 2022 14:15:03 +0200
parents 57cfb39b7842
children 1455814702ad
comparison
equal deleted inserted replaced
29685:e9ec54bdcf34 29686:4153e4815b36
1874 let buf = RunVimInTerminal('-S XscriptPropLinebreak', #{rows: 10}) 1874 let buf = RunVimInTerminal('-S XscriptPropLinebreak', #{rows: 10})
1875 call VerifyScreenDump(buf, 'Test_prop_linebreak', {}) 1875 call VerifyScreenDump(buf, 'Test_prop_linebreak', {})
1876 1876
1877 call StopVimInTerminal(buf) 1877 call StopVimInTerminal(buf)
1878 call delete('XscriptPropLinebreak') 1878 call delete('XscriptPropLinebreak')
1879 endfunc
1880
1881 func Test_prop_with_linebreak()
1882 CheckRunVimInTerminal
1883
1884 let lines =<< trim END
1885 vim9script
1886 set linebreak
1887 setline(1, 'one twoword')
1888 prop_type_add('test', {highlight: 'Special'})
1889 prop_add(1, 4, {text: ': virtual text', type: 'test', text_wrap: 'wrap'})
1890 END
1891 call writefile(lines, 'XscriptPropWithLinebreak')
1892 let buf = RunVimInTerminal('-S XscriptPropWithLinebreak', #{rows: 6, cols: 50})
1893 call VerifyScreenDump(buf, 'Test_prop_with_linebreak_1', {})
1894 call term_sendkeys(buf, "iasdf asdf asdf asdf asdf as\<Esc>")
1895 call VerifyScreenDump(buf, 'Test_prop_with_linebreak_2', {})
1896
1897 call StopVimInTerminal(buf)
1898 call delete('XscriptPropWithLinebreak')
1879 endfunc 1899 endfunc
1880 1900
1881 func Test_prop_after_tab() 1901 func Test_prop_after_tab()
1882 CheckRunVimInTerminal 1902 CheckRunVimInTerminal
1883 1903