Skip to content

Commit 01193be

Browse files
authored
date, str char
1 parent cdb44a8 commit 01193be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

indent/javascript.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Javascript
33
" Maintainer: Chris Paul ( https://github.com/bounceme )
44
" URL: https://github.com/pangloss/vim-javascript
5-
" Last Change: October 29, 2016
5+
" Last Change: Octember 31, 2016
66

77
" Only load this indent file when no other was loaded.
88
if exists('b:did_indent')
@@ -133,7 +133,7 @@ function s:IsBlock(...)
133133
return cursor(0,match(' ' . strpart(getline('.'),0,col('.')),'.*\zs' . s:expr_case . '$')) + 1 &&
134134
\ (expand('<cword>') !=# 'default' || !search('\S','bW') || getline('.')[col('.')-1] !~ '[,{]')
135135
endif
136-
return stridx('-=~!<*+,/?^%|&([',char[1]) < 0
136+
return stridx('-=~!<*+,/?^%|&([',char[-1:]) < 0
137137
endif
138138
return 1
139139
endfunction

0 commit comments

Comments
 (0)