Hi Christian,

On 2015-09-03, Christian Brabandt wrote:
> Hi Gary!
> 
> On Di, 01 Sep 2015, Gary Johnson wrote:

> > Thanks for this change.  I think it would work better and as I think
> > "zt" should if that line was uncommented.
> > 
> > Even then, though, there is a bug in the behavior.  It was in
> > Christian's original patch, too--I just didn't notice it until I
> > started testing this patch.

[...]

> I see the problem:
> diff --git a/src/move.c b/src/move.c
> --- a/src/move.c
> +++ b/src/move.c
> @@ -1756,7 +1756,7 @@ scroll_cursor_top(min_scroll, always)
>       * TODO: if filler lines above new top are to be considered as context 
> for
>       * the current window, leave next statement commented, else hide filler
>       * lines above cursor line, by adding them to extra */
> -    /* extra += diff_check_fill(curwin, curwin->w_cursor.lnum); */
> +     extra += diff_check_fill(curwin, curwin->w_cursor.lnum);
>  #endif
> 
>      /*
> @@ -1771,7 +1771,7 @@ scroll_cursor_top(min_scroll, always)
>             i = 1;
>         else
>  #endif
> -           i = plines(top);
> +           i = plines_nofill(top);
>         used += i;
>         if (extra + i <= off && bot < curbuf->b_ml.ml_line_count)
>         {

Lovely!  Thank you!

Regards,
Gary

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