Christian Brabandt wrote:

> You might have found a bug here. I think the original idea is, that 
> whenever 'relativenumber'
> is set, one needs to update more often, since the relativenumbers change 
> whenever you move
> the cursor up and down. This does obviously not happen here and I think 
> this is caused
> by curwin->w_valid incorrectly being made invalid.
> 
> I don't see why VALID_WROW should be made invalid, just because the 
> column changed. So I remove it in the following
> patch and after testing with your commandline given above Vim indeed 
> seems to be much faster (but please
> everybody test to confirm).
> 
> diff --git a/src/move.c b/src/move.c
> --- a/src/move.c
> +++ b/src/move.c
> @@ -467,7 +467,7 @@ check_cursor_moved(wp)
>   #endif
>            )
>       {
> -     wp->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL);
> +     wp->w_valid &= ~(VALID_WCOL|VALID_VIRTCOL);
>       wp->w_valid_cursor.col = wp->w_cursor.col;
>       wp->w_valid_leftcol = wp->w_leftcol;
>   #ifdef FEAT_VIRTUALEDIT
> 

That will cause a problem for long lines.  I'll make an alternative
patch.

-- 
You can test a person's importance in the organization by asking how much RAM
his computer has.  Anybody who knows the answer to that question is not a
decision-maker.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui