On Tue, Nov 18, 2014 at 5:46 AM, Christian Brabandt <cbli...@256bit.org> wrote:
> Can you check, if this patch works for you?
>
> diff --git a/src/screen.c b/src/screen.c
> --- a/src/screen.c
> +++ b/src/screen.c
> @@ -4456,6 +4456,9 @@ win_line(wp, lnum, startrow, endrow, noc
>                     /* TODO: is passing p for start of the line OK? */
>                     n_extra = win_lbr_chartabsize(wp, line, p, (colnr_T)vcol,
>                                                                     NULL) - 1;
> +                   if (c == TAB && n_extra + col > W_WIDTH(wp))
> +                       n_extra = (int)wp->w_buffer->b_p_ts
> +                                       - vcol % (int)wp->w_buffer->b_p_ts - 
> 1;
>                     c_extra = ' ';
>                     if (vim_iswhite(c))
>                     {
>
>
> This seems to fix the problem for me. If this works also ok for you,
> I'll try to come up with a test case. The win_line function is ugly and
> too complex, it is hard to prevent introducing new bugs when messing
> with that.

Thank you for sparing your time in coming up with the patch. It works for me.
I also ran the whole test suite in testdir and didn't see any breakage with the
introduction of this patch.

Thanks!

Nazri

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui