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.