Skip to content

code completion of a expression with brackets, copies earlier text #1617

@gordonwoodhull

Description

@gordonwoodhull

Similar to #646, when you ask for completion after a square bracket, R will show you your entire expression up until that point, even though the completion is really just on the subexpression following the bracket.

Then because of the same regex-search-backward to find how much to substitute, which doesn't include bracket, the entire expression gets copied.

Not sure if there are other operators which have this IMO kind of strange behavior in R code completion, completing some larger expression than the context demands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions