Skip to content

expression indent_count *= 1.5 not recognized in nvim 0.3.x #601

@tigerinus

Description

@tigerinus

Commit 6422a5a breaks nvim 0.3.x

image

This would fix the issue:

diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 2ebfec9..cc1f423 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -2645,7 +2645,7 @@ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions