Thursday, March 27, 2014

Re: Extremely slow when using relativenumber & syntax highlighting

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)
>

No comments:

Post a Comment