mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 03:58:32 +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:
@@ -4458,16 +4458,16 @@ dozet:
|
||||
case 'r':
|
||||
curwin->w_p_fdl += cap->count1;
|
||||
{
|
||||
int d = getDeepestNesting();
|
||||
int d = getDeepestNesting(curwin);
|
||||
if (curwin->w_p_fdl >= d) {
|
||||
curwin->w_p_fdl = d;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
/* "zR": open all folds */
|
||||
case 'R': curwin->w_p_fdl = getDeepestNesting();
|
||||
old_fdl = -1; /* force an update */
|
||||
case 'R': // "zR": open all folds
|
||||
curwin->w_p_fdl = getDeepestNesting(curwin);
|
||||
old_fdl = -1; // force an update
|
||||
break;
|
||||
|
||||
case 'j': /* "zj" move to next fold downwards */
|
||||
|
Reference in New Issue
Block a user