diff options
-rw-r--r-- | ftdetect/polyglot.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 37a2525e..f44a1959 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1799,8 +1799,10 @@ if !has_key(s:disabled_packages, 'autoindent') let heredoc = '' let minindent = 10 let spaces_minus_tabs = 0 + let i = 1 for line in a:lines + let i += 1 if !len(line) || line =~# '^\W*$' continue endif @@ -1874,7 +1876,7 @@ if !has_key(s:disabled_packages, 'autoindent') let indent = len(matchstr(line, '^ *')) if (indent % 2 == 0 || indent % 3 == 0) && indent < minindent let minindent = indent - let b:sleuth_culprit .= ":" . line + let b:sleuth_culprit .= ':' . i endif endif endfor |