diff options
author | chentau <tchen1998@gmail.com> | 2021-01-05 00:28:34 -0800 |
---|---|---|
committer | chentau <tchen1998@gmail.com> | 2021-01-05 00:28:34 -0800 |
commit | 231f75e086a9d7a6d48e1eefd1789861bd8097bb (patch) | |
tree | 49f0558d4892be284c65fffbd0081a0769f36332 /src/nvim/extmark.c | |
parent | 10b278bdae4227ab1fdc1257e09bfa6524cbf63c (diff) | |
download | rneovim-231f75e086a9d7a6d48e1eefd1789861bd8097bb.tar.gz rneovim-231f75e086a9d7a6d48e1eefd1789861bd8097bb.tar.bz2 rneovim-231f75e086a9d7a6d48e1eefd1789861bd8097bb.zip |
change gravity to be a boolean flag, and add corresponding flag for end position of extmark
Diffstat (limited to 'src/nvim/extmark.c')
-rw-r--r-- | src/nvim/extmark.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c index 3f3b8c76f3..cacbeddb32 100644 --- a/src/nvim/extmark.c +++ b/src/nvim/extmark.c @@ -71,7 +71,8 @@ static ExtmarkNs *buf_ns_ref(buf_T *buf, uint64_t ns_id, bool put) { /// @returns the mark id uint64_t extmark_set(buf_T *buf, uint64_t ns_id, uint64_t id, int row, colnr_T col, int end_row, colnr_T end_col, - Decoration *decor, bool right_gravity, ExtmarkOp op) + Decoration *decor, bool right_gravity, + bool end_right_gravity, ExtmarkOp op) { ExtmarkNs *ns = buf_ns_ref(buf, ns_id, true); assert(ns != NULL); @@ -110,7 +111,7 @@ uint64_t extmark_set(buf_T *buf, uint64_t ns_id, uint64_t id, if (end_row > -1) { mark = marktree_put_pair(buf->b_marktree, row, col, right_gravity, - end_row, end_col, false); + end_row, end_col, end_right_gravity); } else { mark = marktree_put(buf->b_marktree, row, col, right_gravity); } |