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

String containing apostrophes can break the selection #1

Open
contentfree opened this issue Jan 30, 2013 · 5 comments
Open

String containing apostrophes can break the selection #1

contentfree opened this issue Jan 30, 2013 · 5 comments
Labels

Comments

@contentfree
Copy link

  a = 'test'
  b = "This shouldn't break"

If you place your cursor after the apostrophe in b and run the command, all is well. If you place your cursor before the apostrophe in b and run the command, the selection goes from the last single quote in the a line to the apostrophe.

@unphased
Copy link

There are two regions in which this fails: With the cursor at the left of the first double-quote, it will select from the end of the first line up to the apostrophe, and with the cursor between the same double-quote and the apostrophe, it selects nothing.

@kek kek added the bug label Oct 11, 2015
@kek
Copy link
Owner

kek commented Jun 26, 2021

Confirmed that it doesn't seem to work as one would expect in this case.

@kek
Copy link
Owner

kek commented Jun 26, 2021

I have a feeling that it would take a more clever algorithm to make this work properly. As you might have guessed, I don't use Sublime Text actively anymore so I don't think I will put any effort into this, but I will try to be quicker to merge a pull request that upgrades the plugin to handle this case.

@pythoncarpenter
Copy link

I have a feeling that it would take a more clever algorithm to make this work properly. As you might have guessed, I don't use Sublime Text actively anymore so I don't think I will put any effort into this, but I will try to be quicker to merge a pull request that upgrades the plugin to handle this case.

What did you end up using?

@unphased
Copy link

I'm not @kek but I went from sublime -> vim -> neovim. Highly recommended 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants