potatomaster42 / vim

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

Minor w_curswant bug #339

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce the problem:
1. Create a buffer with the contents:

0123456
789

2. :set virtualedit=
3. put the cursor on "4"
4. move down a line
5. :set ruler
6. move up a line

The expected result would be to have the cursor end on character "4".
The actual result is it moves to "2".

This is with Vim 7.4.658 on Linux (but the bug most likely happens on all 
systems).

The value of &ruler doesn't matter, it's the action of setting (or unsetting) 
it that seems to triggers the bug.  On the other hand, setting or unsetting 
other options (such as showcmd) doesn't trigger the problem.

Original issue reported on code.google.com by lcd...@gmail.com on 13 Mar 2015 at 5:54

GoogleCodeExporter commented 9 years ago
When redrawing the status line the "curswant" column is reset.  That's not 
needed, I'll make a patch to avoid it.

Original comment by brammool...@gmail.com on 13 Mar 2015 at 10:23