summaryrefslogtreecommitdiff
path: root/src/syntax.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/syntax.c
parent0cae847008c1b593c4fef30274e42199a5cc523f (diff)
downloadvim-74c596b5a8210293292cf512930f555e2b16a3db.zip
updated for version 7.0-154
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 1b09e707b..d5047c7c6 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -6072,7 +6072,11 @@ syn_get_foldlevel(wp, lnum)
++level;
}
if (level > wp->w_p_fdn)
+ {
level = wp->w_p_fdn;
+ if (level < 0)
+ level = 0;
+ }
return level;
}
#endif