Mercurial > vim
comparison src/testdir/test_textprop.vim @ 29736:65348cc3b656 v9.0.0208
patch 9.0.0208: the override flag has no effect for virtual text
Commit: https://github.com/vim/vim/commit/9e7e28fc4c32337f2153b94fb08140f47e46e35d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 14 16:36:38 2022 +0100
patch 9.0.0208: the override flag has no effect for virtual text
Problem: The override flag has no effect for virtual text. (Ben Jackson)
Solution: Make the override flag work. (closes https://github.com/vim/vim/issues/10915)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Aug 2022 17:45:03 +0200 |
parents | 0eeab24d3faf |
children | b167c91b5f6b |
comparison
equal
deleted
inserted
replaced
29735:1aa33a99c854 | 29736:65348cc3b656 |
---|---|
2803 | 2803 |
2804 call StopVimInTerminal(buf) | 2804 call StopVimInTerminal(buf) |
2805 call delete('XscriptPropsBelowNowrap') | 2805 call delete('XscriptPropsBelowNowrap') |
2806 endfunc | 2806 endfunc |
2807 | 2807 |
2808 func Test_props_with_text_override() | |
2809 CheckRunVimInTerminal | |
2810 | |
2811 let lines =<< trim END | |
2812 vim9script | |
2813 setline(1, 'some text here') | |
2814 hi Likethis ctermfg=blue ctermbg=cyan | |
2815 prop_type_add('prop', {highlight: 'Likethis', override: true}) | |
2816 prop_add(1, 6, {type: 'prop', text: ' inserted '}) | |
2817 hi CursorLine cterm=underline ctermbg=lightgrey | |
2818 set cursorline | |
2819 END | |
2820 call writefile(lines, 'XscriptPropsOverride') | |
2821 let buf = RunVimInTerminal('-S XscriptPropsOverride', #{rows: 6, cols: 60}) | |
2822 call VerifyScreenDump(buf, 'Test_prop_with_text_override_1', {}) | |
2823 | |
2824 call term_sendkeys(buf, ":set nocursorline\<CR>") | |
2825 call term_sendkeys(buf, "0llvfr") | |
2826 call VerifyScreenDump(buf, 'Test_prop_with_text_override_2', {}) | |
2827 | |
2828 call StopVimInTerminal(buf) | |
2829 call delete('XscriptPropsOverride') | |
2830 endfunc | |
2831 | |
2808 func Test_props_with_text_CursorMoved() | 2832 func Test_props_with_text_CursorMoved() |
2809 CheckRunVimInTerminal | 2833 CheckRunVimInTerminal |
2810 | 2834 |
2811 let lines =<< trim END | 2835 let lines =<< trim END |
2812 call setline(1, ['this is line one', 'this is line two', 'three', 'four', 'five']) | 2836 call setline(1, ['this is line one', 'this is line two', 'three', 'four', 'five']) |