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/syntax.c | |
parent | 0cae847008c1b593c4fef30274e42199a5cc523f (diff) | |
download | vim-74c596b5a8210293292cf512930f555e2b16a3db.zip |
updated for version 7.0-154
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 4 |
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 |