summaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-11-05 07:13:41 +0100
committerBram Moolenaar <Bram@vim.org>2013-11-05 07:13:41 +0100
commit6bcbcc59be58d0c3b3cd53ac105c6eb7d0b87f06 (patch)
tree3027528e1aeb2edb9e7efe94f67e1cb1821d185f /src/fold.c
parent0958e0fbe7307f0b46b8f692cbd097fbf93c90f6 (diff)
downloadvim-git-6bcbcc59be58d0c3b3cd53ac105c6eb7d0b87f06.tar.gz
updated for version 7.4.069v7.4.069
Problem: Cannot right shift lines starting with #. Solution: Allow the right shift when 'cino' contains #N with N > 0. (Christian Brabandt) Refactor parsing 'cino', store the values in the buffer.
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fold.c b/src/fold.c
index a1671fe66..cd58c9153 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;