mirror of
https://github.com/keith/swift.vim.git
synced 2025-12-22 12:14:13 +01:00
Fix unrelated function issue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user