Skip to content

[Bug] CaptureText.content captures old suggestion if user keeps typing #50

@PyDevC

Description

@PyDevC

File: lua/model_cmp/virtualtext.lua:108

Introduction: capturefirstline() reads M.CaptureText.content which was set during the last update_preview() call. If the user types more text between the suggestion appearing and pressing <C-s>, the captured text is stale and may not match the current buffer state.

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