aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_options.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-07 05:34:20 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-07 05:34:20 +0800
commitfe621b4ac01c6865650794b8e986665be4fe0ae7 (patch)
tree9882e065f6e6fb118ace1353ad547f19bae9e877 /src/nvim/testdir/test_options.vim
parente6e9ffb3456607747132e398039ea8de16553a52 (diff)
downloadrneovim-fe621b4ac01c6865650794b8e986665be4fe0ae7.tar.gz
rneovim-fe621b4ac01c6865650794b8e986665be4fe0ae7.tar.bz2
rneovim-fe621b4ac01c6865650794b8e986665be4fe0ae7.zip
vim-patch:8.1.0711: test files still use function!
Problem: Test files still use function!. Solution: Remove the exclamation mark. Fix overwriting a function. https://github.com/vim/vim/commit/1e1153600c0377472d62cc553173fe555ddcf5a7 Some of the changes were already applied previously.
Diffstat (limited to 'src/nvim/testdir/test_options.vim')
-rw-r--r--src/nvim/testdir/test_options.vim14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index f7bfa48943..a5adb5ff16 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -22,16 +22,16 @@ func Test_whichwrap()
call assert_equal('h', &whichwrap)
set whichwrap&
-endfunction
+endfunc
-function! Test_isfname()
+func Test_isfname()
" This used to cause Vim to access uninitialized memory.
set isfname=
call assert_equal("~X", expand("~X"))
set isfname&
-endfunction
+endfunc
-function Test_wildchar()
+func Test_wildchar()
" Empty 'wildchar' used to access invalid memory.
call assert_fails('set wildchar=', 'E521:')
call assert_fails('set wildchar=abc', 'E521:')
@@ -42,7 +42,7 @@ function Test_wildchar()
let a=execute('set wildchar?')
call assert_equal("\n wildchar=<Esc>", a)
set wildchar&
-endfunction
+endfunc
func Test_wildoptions()
set wildoptions=
@@ -90,7 +90,7 @@ func Test_options_command()
close
endfunc
-function! Test_path_keep_commas()
+func Test_path_keep_commas()
" Test that changing 'path' keeps two commas.
set path=foo,,bar
set path-=bar
@@ -98,7 +98,7 @@ function! Test_path_keep_commas()
call assert_equal('foo,,bar', &path)
set path&
-endfunction
+endfunc
func Test_filetype_valid()
set ft=valid_name