We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6f457 commit 4bd6150Copy full SHA for 4bd6150
indent/haskell.vim
@@ -342,9 +342,9 @@ function! GetHaskellIndent()
342
else
343
let l:m = matchstr(l:line, '^\s*\zs\<\S\+\>\ze')
344
let l:l = l:prevline
345
- let l:c = 1
+ let l:c = v:lnum - 1
346
347
- while v:lnum != l:c
+ while l:c >= 1
348
" fun decl
349
if l:l =~ ('^\s*' . l:m . '\(\s*::\|\n\s\+::\)')
350
let l:s = match(l:l, l:m)
@@ -357,8 +357,8 @@ function! GetHaskellIndent()
357
elseif l:l =~ '^$'
358
return 0
359
endif
360
- let l:c += 1
361
- let l:l = getline(v:lnum - l:c)
+ let l:c -= 1
+ let l:l = getline(l:c)
362
endwhile
363
364
0 commit comments