aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-03-02 13:56:27 +0100
committerGitHub <noreply@github.com>2020-03-02 13:56:27 +0100
commitd22fd58629c6aa93d808d74a7e6dee79e3246ae0 (patch)
treecda0f3a59a076bae4c1cf4f6e51328eee560cf1e /src/nvim/fold.c
parente35ff7371f4a61621587744a7620200380abbbe9 (diff)
parent6f261d23942feb22e5aa2881bc645bce5c5ce946 (diff)
downloadrneovim-d22fd58629c6aa93d808d74a7e6dee79e3246ae0.tar.gz
rneovim-d22fd58629c6aa93d808d74a7e6dee79e3246ae0.tar.bz2
rneovim-d22fd58629c6aa93d808d74a7e6dee79e3246ae0.zip
Merge pull request #11716 from teto/folds_auto_backup
[RFC] foldcolumn autowidth
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r--src/nvim/fold.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index 331d7f9e29..c14a64fa38 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -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)