Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
26337:ab47e2ca4673 | 26338:4cf208415483 |
---|---|
1612 :$del | 1612 :$del |
1613 | 1613 |
1614 prop_type_delete('Test') | 1614 prop_type_delete('Test') |
1615 bwipe! | 1615 bwipe! |
1616 enddef | 1616 enddef |
1617 | |
1618 func Test_prop_in_linebreak() | |
1619 CheckRunVimInTerminal | |
1620 | |
1621 let lines =<< trim END | |
1622 set breakindent linebreak breakat+=] | |
1623 call printf('%s]%s', repeat('x', 50), repeat('x', 70))->setline(1) | |
1624 call prop_type_add('test', #{highlight: 'ErrorMsg'}) | |
1625 call prop_add(1, 51, #{length: 1, type: 'test'}) | |
1626 END | |
1627 call writefile(lines, 'XscriptPropLinebreak') | |
1628 let buf = RunVimInTerminal('-S XscriptPropLinebreak', #{rows: 10}) | |
1629 call TermWait(buf) | |
1630 call VerifyScreenDump(buf, 'Test_prop_linebreak', {}) | |
1631 | |
1632 call StopVimInTerminal(buf) | |
1633 call delete('XscriptPropLinebreak') | |
1634 endfunc | |
1617 | 1635 |
1618 " Buffer number of 0 should be ignored, as if the parameter wasn't passed. | 1636 " Buffer number of 0 should be ignored, as if the parameter wasn't passed. |
1619 def Test_prop_bufnr_zero() | 1637 def Test_prop_bufnr_zero() |
1620 new | 1638 new |
1621 try | 1639 try |