diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-30 20:59:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-30 20:59:40 -0500 |
| commit | a1a4dd34ea26d397f7222afe943f67bbdb889d3f (patch) | |
| tree | 34f1dde81d850623a796f633b19d396a740730ad /src/nvim/testdir/test_highlight.vim | |
| parent | c3a45032e6fa3b2aafff10a1e5ef606d077cd954 (diff) | |
| parent | 87279bb8099fb0c37667ae131d4f7dbeb42dc504 (diff) | |
| download | rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.tar.gz rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.tar.bz2 rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.zip | |
Merge pull request #13419 from janlazo/vim-8.2.2067
vim-patch:8.1.2264,8.2.{617,620,628,2067,2069}
Diffstat (limited to 'src/nvim/testdir/test_highlight.vim')
| -rw-r--r-- | src/nvim/testdir/test_highlight.vim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index a80a73161f..8f6834c2ab 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -39,15 +39,15 @@ func Test_highlight() call assert_fails("hi Crash term='asdf", "E475:") endfunc -function! HighlightArgs(name) +func HighlightArgs(name) return 'hi ' . substitute(split(execute('hi ' . a:name), '\n')[0], '\<xxx\>', '', '') -endfunction +endfunc -function! IsColorable() +func IsColorable() return has('gui_running') || str2nr(&t_Co) >= 8 -endfunction +endfunc -function! HiCursorLine() +func HiCursorLine() let hiCursorLine = HighlightArgs('CursorLine') if has('gui_running') let guibg = matchstr(hiCursorLine, 'guibg=\w\+') @@ -58,9 +58,9 @@ function! HiCursorLine() let hi_bg = 'hi CursorLine cterm=NONE ctermbg=Gray' endif return [hiCursorLine, hi_ul, hi_bg] -endfunction +endfunc -function! Check_lcs_eol_attrs(attrs, row, col) +func Check_lcs_eol_attrs(attrs, row, col) let save_lcs = &lcs set list @@ -68,7 +68,7 @@ function! Check_lcs_eol_attrs(attrs, row, col) set nolist let &lcs = save_lcs -endfunction +endfunc func Test_highlight_eol_with_cursorline() let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine() |