vim-expand-region icon indicating copy to clipboard operation
vim-expand-region copied to clipboard

Quoted text not selected correctly

Open robcsi opened this issue 11 years ago • 1 comments

Hi,

I've been using this plugin for a while, and I like it very much.

When starting selection inside quoted text, I noticed that at the second selection action, the plugin selects outside of the quotes (space delimited text object), rather than the whole content, if the part selected at first is a word at the beginning or at the end of the quoted text.

Example:

if (method() == "some example text")

If I stand on the word text and select it, the next selection will select text"). The same happens for standing on some and selecting twice: "some will be selected. The whole content of the quotes (some example text), without them, will be selected only on the third selection action.

Is this a bug, or the designed behavior? For me it is more intuitive to have the whole content selected right after selecting either of the words in the quotes.

robcsi avatar Apr 17 '14 08:04 robcsi

Seems like a bug as I would have also expected it to select 'some example text' before grabbing the double quotes or closing parenthesis.

adevore3 avatar Jan 10 '18 17:01 adevore3