Skip to content

Infinite loop on template rendering if function starts at index 0 in template file #367

@anjiro

Description

@anjiro

Description

If a template file starts with a user-defined function, then the template rendering code loops forever. I believe the problem is this line in template.vim, which, if matchstrpos() has returned a start position of 0 into l:c1, sets l:pre to the entire template file. I don't have time to test a fix, so please forgive the bug report in place of a pull request.

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