Commit: patch 9.2.1010: compile error when folding feature is disabled

2 views
Skip to first unread message

Christian Brabandt

unread,
Aug 25, 2026, 5:00:17 PM (2 days ago) Aug 25
to vim...@googlegroups.com
patch 9.2.1010: compile error when folding feature is disabled

Commit: https://github.com/vim/vim/commit/3e46ee723f2bc950950420c373816ee735424d6a
Author: Christian Brabandt <c...@256bit.org>
Date: Tue Aug 25 20:48:38 2026 +0000

patch 9.2.1010: compile error when folding feature is disabled

Problem: compile error when folding feature is disabled
(after: v9.2.1006, John Marriott)
Solution: Add back missing ifdefs

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/fold.c b/src/fold.c
index 24e3defa8..969886e0e 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -3715,6 +3715,7 @@ f_foldclosedend(typval_T *argvars, typval_T *rettv)
foldclosed_both(argvars, rettv, TRUE);
}

+# ifdef FEAT_FOLDING
/*
* Return fold level at line number "lnum" in the current window.
*/
@@ -3736,6 +3737,7 @@ foldLevel(linenr_T lnum)

return foldLevelWin(curwin, lnum);
}
+# endif

/*
* "foldlevel()" function
diff --git a/src/version.c b/src/version.c
index 50a655d4d..392e69d46 100644
--- a/src/version.c
+++ b/src/version.c
@@ -763,6 +763,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1010,
/**/
1009,
/**/
Reply all
Reply to author
Forward
0 new messages