From 0a2f2cc04d39f996d5afcdbc99f5b4190f094bbb Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 23 Oct 2020 21:57:54 +0200 Subject: Fix old nvim, closes #592 --- ftdetect/polyglot.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftdetect') 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 -- cgit v1.2.3