Skip to content

Commit 6fed769

Browse files
committed
use get to check if indent has been disabled
1 parent a87c4f8 commit 6fed769

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

indent/haskell.vim

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ if exists('b:did_indent')
1111
finish
1212
endif
1313

14-
if !exists('g:haskell_indent_disable')
15-
let g:haskell_indent_disable = 0
16-
endif
17-
18-
if g:haskell_indent_disable != 0
14+
if get(g:, 'haskell_indent_disable', 0)
1915
finish
2016
endif
2117

0 commit comments

Comments
 (0)