diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-09 23:01:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-09 23:01:02 +0100 |
commit | 1e1153600c0377472d62cc553173fe555ddcf5a7 (patch) | |
tree | 6b048ad52538ede86b31960d3c2f963411925c73 /src/testdir/test_highlight.vim | |
parent | c46af534102c65b43912311d67f55f5049e5ef7a (diff) | |
download | vim-git-1e1153600c0377472d62cc553173fe555ddcf5a7.tar.gz |
patch 8.1.0711: test files still use function!v8.1.0711
Problem: Test files still use function!.
Solution: Remove the exclamation mark. Fix overwriting a function.
Diffstat (limited to 'src/testdir/test_highlight.vim')
-rw-r--r-- | src/testdir/test_highlight.vim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim index 1e8efea1a..67c750613 100644 --- a/src/testdir/test_highlight.vim +++ b/src/testdir/test_highlight.vim @@ -38,15 +38,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\+') @@ -57,9 +57,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 @@ -67,7 +67,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() |