diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-11-01 11:44:31 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-11-01 11:44:31 +0000 |
commit | 74c596b5a8210293292cf512930f555e2b16a3db (patch) | |
tree | c9e3e4a741915b1d17fb218c7fb0b0ef257c5b32 /src/fold.c | |
parent | 0cae847008c1b593c4fef30274e42199a5cc523f (diff) | |
download | vim-74c596b5a8210293292cf512930f555e2b16a3db.zip |
updated for version 7.0-154
Diffstat (limited to 'src/fold.c')
-rw-r--r-- | src/fold.c | 4 |
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 */ |