diff options
Diffstat (limited to 'src/fold.c')
-rw-r--r-- | src/fold.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fold.c b/src/fold.c index a1671fe667..cd58c9153c 100644 --- a/src/fold.c +++ b/src/fold.c @@ -3052,7 +3052,7 @@ foldlevelIndent(flp) flp->lvl = -1; } else - flp->lvl = get_indent_buf(buf, lnum) / get_sw_value(); + flp->lvl = get_indent_buf(buf, lnum) / get_sw_value(curbuf); if (flp->lvl > flp->wp->w_p_fdn) { flp->lvl = flp->wp->w_p_fdn; |