We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60eaba7 commit 6706a24Copy full SHA for 6706a24
indent/javascript.vim
@@ -100,7 +100,7 @@ function s:PrevCodeLine(lnum)
100
endif
101
let lnum = prevnonblank(lnum - 1)
102
endwhile
103
- return lnum > 0 ? lnum : -1
+ return lnum
104
endfunction
105
106
" Check if line 'lnum' has more opening brackets than closing ones.
@@ -146,7 +146,7 @@ function GetJavascriptIndent()
146
return cindent(v:lnum)
147
148
let lnum = s:PrevCodeLine(v:lnum - 1)
149
- if lnum <= 0
+ if lnum == 0
150
return 0
151
152
let line = s:StripLine(line)
0 commit comments