diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2016-05-13 15:54:46 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2016-05-13 16:10:17 +0200 |
commit | 84593f2d7f25ba215a7bab954d639a2718f88c24 (patch) | |
tree | 5129cb367f4b0dd375915487653211b7f4894dfa /indent/haskell.vim | |
parent | 22f6f3b6d39a69a32c0c56ac4ff87b9ba64c1fb3 (diff) | |
download | vim-polyglot-84593f2d7f25ba215a7bab954d639a2718f88c24.tar.gz vim-polyglot-84593f2d7f25ba215a7bab954d639a2718f88c24.zip |
Update
Diffstat (limited to 'indent/haskell.vim')
-rw-r--r-- | indent/haskell.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indent/haskell.vim b/indent/haskell.vim index b72ee23d..891e659a 100644 --- a/indent/haskell.vim +++ b/indent/haskell.vim @@ -319,7 +319,10 @@ function! GetHaskellIndent() " foo " >>{ if l:line =~ '^\s*{' && l:prevline !~ '^{' - return match(l:prevline, '\S') + &shiftwidth + let l:s = match(l:prevline, '\S') + if l:s >= 0 + return l:s + &shiftwidth + endif endif " in foo |