Skip to content

Commit 2144509

Browse files
authored
shorten long line,date
1 parent 67ebe06 commit 2144509

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

indent/javascript.vim

Lines changed: 4 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 8, 2016
5+
" Last Change: October 9, 2016
66

77
" Only load this indent file when no other was loaded.
88
if exists('b:did_indent')
@@ -111,7 +111,9 @@ function s:iscontOne(i,num,cont)
111111
while l:i >= l:num && (!l:cont || ind > pind + s:W)
112112
if indent(l:i) < ind " first line always true for !a:cont, false for !!a:cont
113113
if s:OneScope(l:i,s:Trimline(l:i))
114-
if expand('<cword>') ==# 'while' && s:GetPair(s:line_pre . '\C\<do\>','\C\<while\>','bW',s:skip_expr,100,l:num + !!a:num) > 0
114+
if expand('<cword>') ==# 'while' &&
115+
\ s:GetPair(s:line_pre . '\C\<do\>','\C\<while\>','bW',s:skip_expr,100,l:num + !!a:num) > 0
116+
115117
return 0
116118
endif
117119
let bL += 1

0 commit comments

Comments
 (0)