diff src/testdir/test_cursorline.vim @ 30687:f936d46cc9c1 v9.0.0678

patch 9.0.0678: using exclamation marks on :function Commit: https://github.com/vim/vim/commit/97f0eb169bf805c372b13c6bc9a03da2e75e3354 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 6 19:49:13 2022 +0100 patch 9.0.0678: using exclamation marks on :function Problem: Using exclamation marks on :function. Solution: Use :func and :endfunc as usual.
author Bram Moolenaar <Bram@vim.org>
date Thu, 06 Oct 2022 21:00:04 +0200
parents f7a2de8a4ddc
children 1ec91bab6129
line wrap: on
line diff
--- a/src/testdir/test_cursorline.vim
+++ b/src/testdir/test_cursorline.vim
@@ -3,26 +3,26 @@
 source check.vim
 source screendump.vim
 
-function! s:screen_attr(lnum) abort
+func s:screen_attr(lnum) abort
   return map(range(1, 8), 'screenattr(a:lnum, v:val)')
-endfunction
+endfunc
 
-function! s:test_windows(h, w) abort
+func s:test_windows(h, w) abort
   call NewWindow(a:h, a:w)
-endfunction
+endfunc
 
-function! s:close_windows() abort
+func s:close_windows() abort
   call CloseWindow()
-endfunction
+endfunc
 
-function! s:new_hi() abort
+func s:new_hi() abort
   redir => save_hi
   silent! hi CursorLineNr
   redir END
   let save_hi = join(split(substitute(save_hi, '\s*xxx\s*', ' ', ''), "\n"), '')
   exe 'hi' save_hi 'ctermbg=0 guibg=Black'
   return save_hi
-endfunction
+endfunc
 
 func Test_cursorline_highlight1()
   let save_hi = s:new_hi()