diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-11-23 23:03:46 +0100 |
---|---|---|
committer | luukvbaal <luukvbaal@gmail.com> | 2025-02-25 13:09:01 +0100 |
commit | f58e7d5fac1c4f63f0ba3e59134591239182910e (patch) | |
tree | 1b180a27cb3c4f4f521188b8e6416d3adfc79206 /src/nvim/change.c | |
parent | a31ccc3b1f65fd86780c03fec9c6e1bf56e30e35 (diff) | |
download | rneovim-f58e7d5fac1c4f63f0ba3e59134591239182910e.tar.gz rneovim-f58e7d5fac1c4f63f0ba3e59134591239182910e.tar.bz2 rneovim-f58e7d5fac1c4f63f0ba3e59134591239182910e.zip |
feat(marks): add conceal_lines to nvim_buf_set_extmark()
Implement an extmark property that conceals lines vertically.
Diffstat (limited to 'src/nvim/change.c')
-rw-r--r-- | src/nvim/change.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c index 31962b52ce..84053619d7 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -205,9 +205,10 @@ static void changed_lines_invalidate_win(win_T *wp, linenr_T lnum, colnr_T col, } else if (xtra != 0) { // line below change wp->w_lines[i].wl_lnum += xtra; + wp->w_lines[i].wl_foldend += xtra; wp->w_lines[i].wl_lastlnum += xtra; } - } else if (wp->w_lines[i].wl_lastlnum >= lnum) { + } else if (wp->w_lines[i].wl_foldend >= lnum) { // change somewhere inside this range of folded lines, // may need to be redrawn wp->w_lines[i].wl_valid = false; |