Skip to content

Commit a3f2123

Browse files
committed
Merge pull request elixir-editors#30 from iurifq/fix-some-indentation-issues
Fix some indentation issues with one line blocks
2 parents 46c43cb + fe2d31a commit a3f2123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/elixir.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function! s:BlockStarter(lnum, block_start_re)
2727
let lnum = a:lnum
2828
let maxindent = 10000
2929
while lnum > 1
30-
let lnum = prevnonblank(lnum - 1)
3130
if indent(lnum) < maxindent
3231
if getline(lnum) =~ a:block_start_re
3332
return lnum
@@ -38,6 +37,7 @@ function! s:BlockStarter(lnum, block_start_re)
3837
endif
3938
endif
4039
endif
40+
let lnum = prevnonblank(lnum - 1)
4141
endwhile
4242
return -1
4343
endfunction

0 commit comments

Comments
 (0)