Skip to content

Commit 6706a24

Browse files
authored
few remaining touches
1 parent 60eaba7 commit 6706a24

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
@@ -100,7 +100,7 @@ function s:PrevCodeLine(lnum)
100100
endif
101101
let lnum = prevnonblank(lnum - 1)
102102
endwhile
103-
return lnum > 0 ? lnum : -1
103+
return lnum
104104
endfunction
105105

106106
" Check if line 'lnum' has more opening brackets than closing ones.
@@ -146,7 +146,7 @@ function GetJavascriptIndent()
146146
return cindent(v:lnum)
147147
endif
148148
let lnum = s:PrevCodeLine(v:lnum - 1)
149-
if lnum <= 0
149+
if lnum == 0
150150
return 0
151151
endif
152152
let line = s:StripLine(line)

0 commit comments

Comments
 (0)