Skip to content

zig confirm suggestion "replace" instead of "insert" #1235

@haoyuan80s

Description

@haoyuan80s

Zig Version

0.11.0-dev.3380+7e0a02ee2

Zig Language Server Version

0.11.0-dev.479+c28a59c

Steps to Reproduce

<|>: cursor position

fn add(
    c<|>xxx: i32,
) i32 {
    return xxx + 1;
}

image
confirm the first selection (tab in my nvim keybinding)

x

Expected Behavior

insert test:
image

Actual Behavior

replace text:
image

  • Note: it works (aka inserts) if the argument is a single letter (e.g. x)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions