Fix unrelated function issue

This commit is contained in:
Keith Smiley
2014-10-22 13:54:31 -07:00
parent 73283a19b0
commit 17d3475f58

View File

@@ -28,13 +28,13 @@ function! SwiftIndent()
normal! mi
if previous =~ ")"
normal! k
elseif getline(previousNum - 1) =~ ")"
elseif getline(previousNum - 1) =~ ")" && getline(previousNum - 1) !~ ")"
normal! kk
else
return indent(previousNum) + &tabstop
endif
let openingParen = searchpair("(", "", ")", "bW")
let openingParen = searchpair("(", "", ")", "bW")
normal! `i
return indent(openingParen) + &tabstop
endif