Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly adding \< and \> when selection starts or ends with a multi-byte character. #25

Open
blankname opened this issue Oct 20, 2017 · 0 comments

Comments

@blankname
Copy link

If you visually select the question mark and press star in the following text:

texttext

It will search for \V\<\> and not find it.

I don't understand the logic in convert_2_word_pattern_4_visual.
Shouldn't the if conditions just be:

        if text =~# '^\k' && outer !~# '\k'

and

        if text =~# '\k$' && outer !~# '\k'

I would submit a pull request if I understood better.

Looks like this is where the behavior was changed originally:
thinca/vim-visualstar@34979b3

blankname pushed a commit to blankname/vim-asterisk that referenced this issue Nov 7, 2017
blankname pushed a commit to blankname/vim-asterisk that referenced this issue Nov 7, 2017
blankname pushed a commit to blankname/vim-asterisk that referenced this issue Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant