yalay / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Unicode showbreak character causes mispositioned cursor #291

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. :set showbreak=»
2. Edit a file with long lines.
3. Use 'w' to move the cursor onto the wrapped part of a long line.

What is the expected output? What do you see instead?

Expected: Cursor skips the showbreak correctly.

Seen: It looks as if the cursor skips by as many characters as there are bytes 
in the internal representation of the showbreak value. The more lines the text 
is wrapped over, the worse the offset gets.

So while the cursor is actually moved to the correct position by typing 'w' 
each time, it is shown 1 character to the right of its actual position. This 
makes editing surprisingly difficult.

What version of the product are you using? On what operating system?

Vim 7.4 with patches 1-207, 209-475, as bundled with Fedora 20.

Screenshot shows a multiply-wrapped long line *with no whitespace at the end*, 
after typing '$' to send the cursor to the end of the line.

Original issue reported on code.google.com by meta...@gmail.com on 2 Dec 2014 at 6:31

Attachments:

GoogleCodeExporter commented 9 years ago
Should already be fixed by 7.4.478. Please confirm.

Original comment by chrisbr...@googlemail.com on 2 Dec 2014 at 7:15

GoogleCodeExporter commented 9 years ago
I think this was fixed in 7.4.478.

At any rate I cannot reproduce this with 7.4.525.

Original comment by mged...@gmail.com on 2 Dec 2014 at 7:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I just built the current hg checkout and it is indeed fixed. Sorry for the 
inconvenience.

Original comment by meta...@gmail.com on 4 Dec 2014 at 4:49

GoogleCodeExporter commented 9 years ago
okay, closing. Thanks for the feedback!

Original comment by chrisbr...@googlemail.com on 4 Dec 2014 at 9:30