Mercurial > vim
diff src/misc2.c @ 5995:ef83b423ebf7 v7.4.338
updated for version 7.4.338
Problem: Cannot wrap lines taking indent into account.
Solution: Add the 'breakindent' option. (many authors, final improvements by
Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 25 Jun 2014 14:39:50 +0200 |
parents | 8e9db1f27a00 |
children | 18ac55444b37 |
line wrap: on
line diff
--- a/src/misc2.c +++ b/src/misc2.c @@ -201,10 +201,10 @@ coladvance2(pos, addspaces, finetune, wc { /* Count a tab for what it's worth (if list mode not on) */ #ifdef FEAT_LINEBREAK - csize = win_lbr_chartabsize(curwin, ptr, col, &head); + csize = win_lbr_chartabsize(curwin, line, ptr, col, &head); mb_ptr_adv(ptr); #else - csize = lbr_chartabsize_adv(&ptr, col); + csize = lbr_chartabsize_adv(line, &ptr, col); #endif col += csize; } @@ -2156,7 +2156,8 @@ ga_append(gap, c) } } -#if (defined(UNIX) && !defined(USE_SYSTEM)) || defined(WIN3264) +#if (defined(UNIX) && !defined(USE_SYSTEM)) || defined(WIN3264) \ + || defined(PROTO) /* * Append the text in "gap" below the cursor line and clear "gap". */