Skip to content

Commit ed3a94e

Browse files
committed
Fix stridx() comparison
stridx('([{', '(') returns 0. Comments here make clear that Meikel intended parens to trigger a match.
1 parent 33ed73e commit ed3a94e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

indent/clojure.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function! GetClojureIndent()
258258
" We still have to check, whether the keyword starts with a (, [ or {.
259259
" In that case we use the ( position for indent.
260260
let w = s:CurrentWord()
261-
if stridx('([{', w[0]) > 0
261+
if stridx('([{', w[0]) > -1
262262
return paren[1]
263263
endif
264264

0 commit comments

Comments
 (0)