Skip to content

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

Open

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.

Activity

  1. added
    bug
    AI gen
    maintainer triaged
    on May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI genbugmaintainer triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions