1
0
forked from aniani/vim

updated for version 7.3.629

Problem:    There is no way to make 'shiftwidth' follow 'tabstop'.
Solution:   When 'shiftwidth' is zero use the value of 'tabstop'. (Christian
            Brabandt)
This commit is contained in:
Bram Moolenaar
2012-08-08 18:01:05 +02:00
parent b02612b641
commit 14f2474147
8 changed files with 46 additions and 26 deletions

View File

@@ -3025,7 +3025,7 @@ foldlevelIndent(flp)
flp->lvl = -1;
}
else
flp->lvl = get_indent_buf(buf, lnum) / buf->b_p_sw;
flp->lvl = get_indent_buf(buf, lnum) / get_sw_value();
if (flp->lvl > flp->wp->w_p_fdn)
{
flp->lvl = flp->wp->w_p_fdn;