mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
foldcolumn: allow auto:X
Similar to signcolumn, allow foldcolumn to adapt itself to the number of folds. Regression: vim supports a maximum fdc of 12, this limits it to 9.
This commit is contained in:
@@ -1465,10 +1465,10 @@ static void foldMarkAdjustRecurse(garray_T *gap, linenr_T line1, linenr_T line2,
|
||||
* Get the lowest 'foldlevel' value that makes the deepest nested fold in the
|
||||
* current window open.
|
||||
*/
|
||||
int getDeepestNesting(void)
|
||||
int getDeepestNesting(win_T *wp)
|
||||
{
|
||||
checkupdate(curwin);
|
||||
return getDeepestNestingRecurse(&curwin->w_folds);
|
||||
checkupdate(wp);
|
||||
return getDeepestNestingRecurse(&wp->w_folds);
|
||||
}
|
||||
|
||||
static int getDeepestNestingRecurse(garray_T *gap)
|
||||
|
Reference in New Issue
Block a user