Mercurial > vim
comparison src/testdir/test_textprop.vim @ 26350:13cce5c82c9a v8.2.3706
patch 8.2.3706: text property highlighting is used on Tab
Commit: https://github.com/vim/vim/commit/42eba04522d6be04393f59a9eab47833e7594650
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 30 20:22:49 2021 +0000
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 https://github.com/vim/vim/issues/9242)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 30 Nov 2021 21:30:04 +0100 |
parents | 4cf208415483 |
children | e624b4ddbdf0 |
comparison
equal
deleted
inserted
replaced
26349:2ee2e3e3097a | 26350:13cce5c82c9a |
---|---|
1629 call TermWait(buf) | 1629 call TermWait(buf) |
1630 call VerifyScreenDump(buf, 'Test_prop_linebreak', {}) | 1630 call VerifyScreenDump(buf, 'Test_prop_linebreak', {}) |
1631 | 1631 |
1632 call StopVimInTerminal(buf) | 1632 call StopVimInTerminal(buf) |
1633 call delete('XscriptPropLinebreak') | 1633 call delete('XscriptPropLinebreak') |
1634 endfunc | |
1635 | |
1636 func Test_prop_after_tab() | |
1637 CheckRunVimInTerminal | |
1638 | |
1639 let lines =<< trim END | |
1640 set breakindent linebreak breakat+=] | |
1641 call setline(1, "\t[xxx]") | |
1642 call prop_type_add('test', #{highlight: 'ErrorMsg'}) | |
1643 call prop_add(1, 2, #{length: 1, type: 'test'}) | |
1644 END | |
1645 call writefile(lines, 'XscriptPropAfterTab') | |
1646 let buf = RunVimInTerminal('-S XscriptPropAfterTab', #{rows: 10}) | |
1647 call TermWait(buf) | |
1648 call VerifyScreenDump(buf, 'Test_prop_after_tab', {}) | |
1649 | |
1650 call StopVimInTerminal(buf) | |
1651 call delete('XscriptPropAfterTab') | |
1634 endfunc | 1652 endfunc |
1635 | 1653 |
1636 " Buffer number of 0 should be ignored, as if the parameter wasn't passed. | 1654 " Buffer number of 0 should be ignored, as if the parameter wasn't passed. |
1637 def Test_prop_bufnr_zero() | 1655 def Test_prop_bufnr_zero() |
1638 new | 1656 new |