Mercurial > vim
comparison src/testdir/test_textprop.vim @ 29722:f88671dbe88b v9.0.0201
patch 9.0.0201: CursorLine highlight overrules virtual text highlight
Commit: https://github.com/vim/vim/commit/9113c2cd19c72c0973ee5dc095a0a7f03f2af344
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 13 20:17:34 2022 +0100
patch 9.0.0201: CursorLine highlight overrules virtual text highlight
Problem: CursorLine highlight overrules virtual text highlight.
Solution: Let extra attribute overrule line attribute. (closes https://github.com/vim/vim/issues/10909)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Aug 2022 21:30:03 +0200 |
parents | bf965640744d |
children | 0eeab24d3faf |
comparison
equal
deleted
inserted
replaced
29721:89f1f6aa39b8 | 29722:f88671dbe88b |
---|---|
2754 call prop_add(1, 0, #{type: 'someprop', text: ' After the text', text_align: 'after'}) | 2754 call prop_add(1, 0, #{type: 'someprop', text: ' After the text', text_align: 'after'}) |
2755 normal 3G$ | 2755 normal 3G$ |
2756 | 2756 |
2757 call prop_add(3, 0, #{type: 'anotherprop', text: 'right aligned', text_align: 'right'}) | 2757 call prop_add(3, 0, #{type: 'anotherprop', text: 'right aligned', text_align: 'right'}) |
2758 call prop_add(3, 0, #{type: 'anotherprop', text: 'also right aligned', text_align: 'right'}) | 2758 call prop_add(3, 0, #{type: 'anotherprop', text: 'also right aligned', text_align: 'right'}) |
2759 hi CursorLine ctermbg=lightgrey | |
2759 END | 2760 END |
2760 call writefile(lines, 'XscriptPropsAfterNowrap') | 2761 call writefile(lines, 'XscriptPropsAfterNowrap') |
2761 let buf = RunVimInTerminal('-S XscriptPropsAfterNowrap', #{rows: 12, cols: 60}) | 2762 let buf = RunVimInTerminal('-S XscriptPropsAfterNowrap', #{rows: 12, cols: 60}) |
2762 call VerifyScreenDump(buf, 'Test_prop_with_text_after_nowrap_1', {}) | 2763 call VerifyScreenDump(buf, 'Test_prop_with_text_after_nowrap_1', {}) |
2763 | 2764 |
2764 call term_sendkeys(buf, ":set signcolumn=yes foldcolumn=3\<CR>") | 2765 call term_sendkeys(buf, ":set signcolumn=yes foldcolumn=3 cursorline\<CR>") |
2765 call VerifyScreenDump(buf, 'Test_prop_with_text_after_nowrap_2', {}) | 2766 call VerifyScreenDump(buf, 'Test_prop_with_text_after_nowrap_2', {}) |
2766 | 2767 |
2767 call term_sendkeys(buf, "j") | 2768 call term_sendkeys(buf, "j") |
2768 call VerifyScreenDump(buf, 'Test_prop_with_text_after_nowrap_3', {}) | 2769 call VerifyScreenDump(buf, 'Test_prop_with_text_after_nowrap_3', {}) |
2769 | 2770 |