Permalink
Browse files

Fix bug in a method that is apparently not called very often (if ever)

  • Loading branch information...
1 parent 827c47c commit 395f8901b34cc871c9576886938a6efda0eb7268 @pangloss committed Aug 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 indent/javascript.vim
View
@@ -159,7 +159,7 @@ function s:IndentWithContinuation(lnum, ind, width)
" Set up variables to use and search for MSL to the previous line.
let p_lnum = a:lnum
let lnum = s:GetMSL(a:lnum, 1)
- let line = getline(line)
+ let line = getline(lnum)
" If the previous line wasn't a MSL and is continuation return its indent.
" TODO: the || s:IsInString() thing worries me a bit.

1 comment on commit 395f890

Owner

pangloss commented on 395f890 Aug 10, 2012

Fixes #56

Please sign in to comment.