Clean & Fix: cycle_bullets bug not defined key in dic: #911

This commit is contained in:
Tinmarino
2020-06-16 13:46:25 -04:00
parent a9f21c6d4a
commit 43951e5851
6 changed files with 219 additions and 55 deletions

View File

@ -74,7 +74,7 @@ Before (Define functions):
write %
endfunction
" print a command output to the buffer
" Print a command output to the buffer
function! PrintCommand(cmd)
redir => message
silent execute a:cmd
@ -86,4 +86,16 @@ Before (Define functions):
endif
endfunction
" Destroy a variable is exists (unlet)
function! DestroyVar(var)
if ! exists(a:var) | return | endif
execute "unlet " . a:var
endfunction
" Assert current tab is desired tab
function! AssertTab(nr)
" Vader is creating 2 tabs
AssertEqual a:nr + 2, tabpagenr()
endfunction
# vim: ft=vim