diff options
author | Matthieu Coudron <mcoudron@hotmail.com> | 2020-09-28 01:18:37 +0200 |
---|---|---|
committer | Matthieu Coudron <mcoudron@hotmail.com> | 2020-09-28 23:53:10 +0200 |
commit | 12fdb114d1fdc85a26cf60e9af91b243cc59cfa0 (patch) | |
tree | ff3c371172006d13aa22e91a980118386c0dad01 /src/nvim/buffer.c | |
parent | c5ceefca793b8a78cc22a553b243d66042776d5f (diff) | |
download | rneovim-12fdb114d1fdc85a26cf60e9af91b243cc59cfa0.tar.gz rneovim-12fdb114d1fdc85a26cf60e9af91b243cc59cfa0.tar.bz2 rneovim-12fdb114d1fdc85a26cf60e9af91b243cc59cfa0.zip |
folds: pass column on fold creation
useful if we want to have inline folds later and/or let users create
folds that remember their start/end columns.
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) { |