File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- # Run Clojure.vim indentation tests
3
+ # Run Clojure.vim indentation tests.
4
4
5
5
# TODO: colour messages?
6
6
@@ -11,11 +11,8 @@ if [ "$EDITOR" != 'vim' ] && [ "$EDITOR" != 'nvim' ]; then
11
11
exit 1
12
12
fi
13
13
14
- if [ " $EDITOR " = ' vim' ]; then
15
- editor_opts=(' --not-a-term' )
16
- else
17
- editor_opts=()
18
- fi
14
+ extra_opts=()
15
+ [ " $EDITOR " = ' vim' ] && extra_opts+=(' --not-a-term' )
19
16
20
17
PASSED=()
21
18
FAILED=()
@@ -59,7 +56,7 @@ run_test_case() {
59
56
test_cmd=(' +normal! gg=G' )
60
57
fi
61
58
62
- " $EDITOR " " ${editor_opts [@]} " --clean -NXnu test-vimrc.vim " ${test_cmd[@]} " ' +xall!' -- " $actual_file "
59
+ " $EDITOR " " ${extra_opts [@]} " --clean -EsNXnu test-vimrc.vim " ${test_cmd[@]} " ' +xall!' -- " $actual_file "
63
60
64
61
diff --color=always -u " $expected_file " " $actual_file "
65
62
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ profile start $(echo "${PREFIX}-$(date +%s.%N).log")
26
26
profile! file $( dirname " $0 " ) /../../indent/clojure.vim
27
27
"
28
28
29
- exec vim --clean -NXnu <( echo " $VIMRC " ) ' +normal! gg=G' ' +quitall!' " $1 "
29
+ exec vim --clean -ENXnu <( echo " $VIMRC " ) ' +normal! gg=G' ' +quitall!' " $1 "
You can’t perform that action at this time.
0 commit comments