Mercurial > vim
diff src/testdir/test_textprop.vim @ 26338:4cf208415483 v8.2.3700
patch 8.2.3700: text property highlighting continues over breakindent
Commit: https://github.com/vim/vim/commit/6b839ac77586f69a814d2940f59f0125f55c5f81
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 29 21:12:35 2021 +0000
patch 8.2.3700: text property highlighting continues over breakindent
Problem: Text property highlighting continues over breakindent.
Solution: Stop before the end column. (closes https://github.com/vim/vim/issues/9242)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Nov 2021 22:15:03 +0100 |
parents | 685206b54ecf |
children | 13cce5c82c9a |
line wrap: on
line diff
--- a/src/testdir/test_textprop.vim +++ b/src/testdir/test_textprop.vim @@ -1615,6 +1615,24 @@ def Test_prop_add_delete_line() bwipe! enddef +func Test_prop_in_linebreak() + CheckRunVimInTerminal + + let lines =<< trim END + set breakindent linebreak breakat+=] + call printf('%s]%s', repeat('x', 50), repeat('x', 70))->setline(1) + call prop_type_add('test', #{highlight: 'ErrorMsg'}) + call prop_add(1, 51, #{length: 1, type: 'test'}) + END + call writefile(lines, 'XscriptPropLinebreak') + let buf = RunVimInTerminal('-S XscriptPropLinebreak', #{rows: 10}) + call TermWait(buf) + call VerifyScreenDump(buf, 'Test_prop_linebreak', {}) + + call StopVimInTerminal(buf) + call delete('XscriptPropLinebreak') +endfunc + " Buffer number of 0 should be ignored, as if the parameter wasn't passed. def Test_prop_bufnr_zero() new