Skip to content

Commit 4b5fdc9

Browse files
committed
fixup! fixup! Let's not make testing hard: use shiftwidth() wrapper
1 parent 8ec0fbf commit 4b5fdc9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/_setup.vader

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Execute (Setup):
2+
" so it is clear what values later tests are working with
3+
setglobal noexpandtab tabstop=8 softtabstop=0 shiftwidth=8
4+
5+
if exists('*shiftwidth')
6+
function! ShiftWidth()
7+
return shiftwidth()
8+
endfunction
9+
else
10+
Log "WARNING: shiftwidth() not available!"
11+
function! ShiftWidth()
12+
return &shiftwidth
13+
endfunction
14+
endif

0 commit comments

Comments
 (0)