Mercurial > vim
comparison src/testdir/test_signs.vim @ 22013:125051dff419 v8.2.1556
patch 8.2.1556: cursorline highlighting always overrules sign highlighting
Commit: https://github.com/vim/vim/commit/39f7aa3c3124065b50f182b1d2f7ac92a0918656
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 31 22:00:05 2020 +0200
patch 8.2.1556: cursorline highlighting always overrules sign highlighting
Problem: Cursorline highlighting always overrules sign highlighting.
Solution: Combine the highlighting, use the priority to decide how.
(closes #6812)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 31 Aug 2020 22:15:09 +0200 |
parents | 08940efa6b4e |
children | ff21e2962490 |
comparison
equal
deleted
inserted
replaced
22012:c0158af27bee | 22013:125051dff419 |
---|---|
1760 call term_sendkeys(buf, "lh") | 1760 call term_sendkeys(buf, "lh") |
1761 call term_sendkeys(buf, ":sign unplace 11\<CR>") | 1761 call term_sendkeys(buf, ":sign unplace 11\<CR>") |
1762 call term_sendkeys(buf, ":sign unplace 10\<CR>") | 1762 call term_sendkeys(buf, ":sign unplace 10\<CR>") |
1763 call VerifyScreenDump(buf, 'Test_sign_cursor_4', {}) | 1763 call VerifyScreenDump(buf, 'Test_sign_cursor_4', {}) |
1764 | 1764 |
1765 " 'cursorline' highlighting overrules sign | |
1766 call term_sendkeys(buf, ":sign place 12 line=2 name=s2\<CR>") | |
1767 call term_sendkeys(buf, ":set cursorline\<CR>") | |
1768 call term_sendkeys(buf, ":hi CursorLine ctermbg=Green\<CR>") | |
1769 call term_sendkeys(buf, "2G") | |
1770 call term_sendkeys(buf, ":\<CR>") | |
1771 call VerifyScreenDump(buf, 'Test_sign_cursor_5', {}) | |
1772 | |
1773 " sign highlighting overrules 'cursorline' | |
1774 call term_sendkeys(buf, ":sign unplace 12\<CR>") | |
1775 call term_sendkeys(buf, ":sign place 13 line=2 priority=100 name=s2\<CR>") | |
1776 call term_sendkeys(buf, ":\<CR>") | |
1777 call VerifyScreenDump(buf, 'Test_sign_cursor_6', {}) | |
1778 | |
1765 " clean up | 1779 " clean up |
1766 call StopVimInTerminal(buf) | 1780 call StopVimInTerminal(buf) |
1767 call delete('XtestSigncolumn') | 1781 call delete('XtestSigncolumn') |
1768 endfunc | 1782 endfunc |
1769 | 1783 |