Skip to content

Commit aa5586c

Browse files
authored
small bugfixes
1 parent f1bd983 commit aa5586c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: indent/javascript.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function s:OneScope(lnum,text,add)
7777
\ cursor(a:lnum, match(a:text, ')' . s:line_term)) > -1) &&
7878
\ s:GetPair('(', ')', 'cbW', 100) > 0 && search('\C\l\+\_s*\%#','bW') &&
7979
\ (a:add || ((expand('<cword>') !=# 'while' || !s:GetPair('\C\<do\>', '\C\<while\>','nbW',100)) &&
80-
\ expand('cword') !=# 'each' || search('\C\<for\_s\+\%#','nbW'))) ? expand('<cword>') : ''
80+
\ (expand('<cword>') !=# 'each' || search('\C\<for\_s\+\%#','nbW')))) ? expand('<cword>') : ''
8181
endfunction
8282

8383
" https://github.com/sweet-js/sweet.js/wiki/design#give-lookbehind-to-the-reader

0 commit comments

Comments
 (0)