Skip to content

Commit

Permalink
Fix old nvim, closes #592
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Oct 23, 2020
1 parent 6422a5a commit 0a2f2cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftdetect/polyglot.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2645,10 +2645,10 @@ if !has_key(s:disabled_packages, 'autoindent')
let max_count = 0
let final_counts = {}
for [indent, indent_count] in items(a:indents)
let indent_count *= 1.5
let indent_count = indent_count * 1.5
for [indent2, indent2_count] in items(a:indents)
if indent2 > indent && indent2 % indent == 0
let indent_count += indent2_count
let indent_count = indent_count + indent2_count
endif
endfor
let final_counts[indent] = indent_count
Expand Down

0 comments on commit 0a2f2cc

Please sign in to comment.