Skip to content

Commit 395f890

Browse files
author
Darrick Wiebe
committed
Fix bug in a method that is apparently not called very often (if ever)
1 parent 827c47c commit 395f890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function s:IndentWithContinuation(lnum, ind, width)
159159
" Set up variables to use and search for MSL to the previous line.
160160
let p_lnum = a:lnum
161161
let lnum = s:GetMSL(a:lnum, 1)
162-
let line = getline(line)
162+
let line = getline(lnum)
163163

164164
" If the previous line wasn't a MSL and is continuation return its indent.
165165
" TODO: the || s:IsInString() thing worries me a bit.

0 commit comments

Comments
 (0)