summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-23 21:57:54 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-23 21:57:54 +0200
commit0a2f2cc04d39f996d5afcdbc99f5b4190f094bbb (patch)
tree3229415d318b48ac4ce39283d59b8187a8135cff
parent6422a5a479905bf32abe7a322d1c0b0a75d4aa8c (diff)
downloadvim-polyglot-0a2f2cc04d39f996d5afcdbc99f5b4190f094bbb.tar.gz
vim-polyglot-0a2f2cc04d39f996d5afcdbc99f5b4190f094bbb.zip
Fix old nvim, closes #592
-rw-r--r--ftdetect/polyglot.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 2ebfec95..15bd5a0f 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -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