diff options
author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-09-29 06:40:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 06:40:10 +0200 |
commit | 090551a802489d88be221f5893f49f2188037223 (patch) | |
tree | 4b35ffca02a329fa9de7d60622dd2d6a0fd94bce /src/nvim/buffer.c | |
parent | 6f2138eb03766680b012ee0bdfca04fdc2c22e89 (diff) | |
parent | 12fdb114d1fdc85a26cf60e9af91b243cc59cfa0 (diff) | |
download | rneovim-090551a802489d88be221f5893f49f2188037223.tar.gz rneovim-090551a802489d88be221f5893f49f2188037223.tar.bz2 rneovim-090551a802489d88be221f5893f49f2188037223.zip |
Merge pull request #12996 from teto/foldcol
folds: pass column on fold creation
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 6f1d9b2365..ec633dcc26 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -837,7 +837,7 @@ static void clear_wininfo(buf_T *buf) buf->b_wininfo = wip->wi_next; if (wip->wi_optset) { clear_winopt(&wip->wi_opt); - deleteFoldRecurse(&wip->wi_folds); + deleteFoldRecurse(buf, &wip->wi_folds); } xfree(wip); } @@ -2503,7 +2503,7 @@ void buflist_setfpos(buf_T *const buf, win_T *const win, } if (copy_options && wip->wi_optset) { clear_winopt(&wip->wi_opt); - deleteFoldRecurse(&wip->wi_folds); + deleteFoldRecurse(buf, &wip->wi_folds); } } if (lnum != 0) { |