diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index 8847653498..3028f72fec 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -373,15 +373,18 @@ endfunc " Tests for the mode() function let current_modes = '' -func! Save_mode() +func Save_mode() let g:current_modes = mode(0) . '-' . mode(1) return '' endfunc -func! Test_mode() +func Test_mode() new call append(0, ["Blue Ball Black", "Brown Band Bowl", ""]) + " Only complete from the current buffer. + set complete=. + inoremap =Save_mode() normal! 3G @@ -490,6 +493,7 @@ func! Test_mode() bwipe! iunmap + set complete& endfunc func Test_getbufvar()