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

Buffer.Word() fails if run on the last word in a buffer #4

Open
trapgate opened this issue Nov 11, 2014 · 0 comments
Open

Buffer.Word() fails if run on the last word in a buffer #4

trapgate opened this issue Nov 11, 2014 · 0 comments
Labels

Comments

@trapgate
Copy link

trapgate commented Nov 11, 2014

Buffer.Word() fails to expand the region if you run it on the last word in the buffer and there's no whitespace between the word and EOF. To reproduce:

  1. Fire up lime
  2. Create a new buffer with ctrl-n
  3. Enter a word in the new buffer.
  4. Double click to expand the selection to the whole word. This will fail - the selection will not expand, or may expand but not include the final character in the word.

If you add a trailing space or newline after the word, things will work as expected.

There's currently a workaround in the lime sources in transpose_test.go for this problem - when this is fixed the workaround (an extra newline in a buffer) can be removed.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/5923385-buffer-word-fails-if-run-on-the-last-word-in-a-buffer?utm_campaign=plugin&utm_content=tracker%2F7240968&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F7240968&utm_medium=issues&utm_source=github).
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

2 participants