Gary Johnson wrote:

> There is a bug in the 'cursorbind' feature of Vim 7.3.470 when
> 'virtualedit' is "all".  The cursor position in the inactive
> window(s) is supposed to track the cursor position in the active
> window so that when one of the inactive windows is entered, the
> cursor position in that window will match the position in the
> previous active window.
> 
> What happens instead is that if the user has been moving the cursor
> around in the region to the right of the ends of the lines, entering
> another window will cause the cursor to jump to a column far to the
> right of the correct column, often to a column number in the
> hundreds or thousands.
> 
> One way to observe this bug is with the following command.
> 
>     vim -O2 -N -u NONE -c 'set ruler' -c 'windo set cursorbind ve=all' -c 
> 'normal Iline'
> 
> Scroll the cursor back and forth in the empty region to the right of
> "line" and observe the rulers in the two status lines.  The column
> number in the right window will accurately follow the cursor
> position while the column number in the left window will continually
> increase.
> 
> When Vim updates the cursor location, it keeps separate values for
> where the cursor would be in the actual line and where it is in the
> "virtual line".  One of Vim's functions was not properly copying
> this latter value from the active window to the inactive windows.
> The attached patch fixes this problem.
> 
> The patch is in two formats.  The move.c.hgdiff file is the output
> of "hg diff" and the move.c.diff-c file is a context diff.

Thanks, I'll look into it soon.

-- 
Keep America beautiful.  Swallow your beer cans.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to