text
text copied to clipboard
Buffer.Word() fails if run on the last word in a buffer
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:
- Fire up lime
- Create a new buffer with ctrl-n
- Enter a word in the new buffer.
- 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.