Skip to content

[Bug] get_root() hardcodes buffer 0 #42

@PyDevC

Description

@PyDevC

File: lua/model_cmp/context.lua:33

Introduction: vim.treesitter.get_parser(0, self.lang, {}) uses 0 (current buffer) instead of self.bufnr. This defeats the purpose of the instance field and will cause incorrect results if the context engine is ever called for a non-current buffer.

Detailed Description: Change 0 to self.bufnr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI genIssue was generated by AIbugSomething isn't workingmaintainer triagedmaintainer has triaged the issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions