summaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-11-01 11:44:31 +0000
committerBram Moolenaar <Bram@vim.org>2006-11-01 11:44:31 +0000
commit74c596b5a8210293292cf512930f555e2b16a3db (patch)
treec9e3e4a741915b1d17fb218c7fb0b0ef257c5b32 /src/fold.c
parent0cae847008c1b593c4fef30274e42199a5cc523f (diff)
downloadvim-74c596b5a8210293292cf512930f555e2b16a3db.zip
updated for version 7.0-154
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fold.c b/src/fold.c
index bb7b8b7cc..a28a8747c 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -2971,7 +2971,11 @@ foldlevelIndent(flp)
else
flp->lvl = get_indent_buf(buf, lnum) / buf->b_p_sw;
if (flp->lvl > flp->wp->w_p_fdn)
+ {
flp->lvl = flp->wp->w_p_fdn;
+ if (flp->lvl < 0)
+ flp->lvl = 0;
+ }
}
/* foldlevelDiff() {{{2 */