aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/extmark.c
diff options
context:
space:
mode:
authornotomo <notomo.motono@gmail.com>2022-01-24 09:52:13 +0900
committernotomo <notomo.motono@gmail.com>2022-01-24 09:52:13 +0900
commit3d9ae9d2dad88a4e2c2263dc7e256657842244c0 (patch)
treec6374905f58e7f3a089736e877eaf7a236a95ee8 /src/nvim/api/extmark.c
parent7e2ce35e3b7f8be5e8d01b44c2fdba0b4e23fbd4 (diff)
downloadrneovim-3d9ae9d2dad88a4e2c2263dc7e256657842244c0.tar.gz
rneovim-3d9ae9d2dad88a4e2c2263dc7e256657842244c0.tar.bz2
rneovim-3d9ae9d2dad88a4e2c2263dc7e256657842244c0.zip
feat(api): expose extmark right_gravity and end_right_gravity
Diffstat (limited to 'src/nvim/api/extmark.c')
-rw-r--r--src/nvim/api/extmark.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c
index 80bd88c4ee..3a968f07ab 100644
--- a/src/nvim/api/extmark.c
+++ b/src/nvim/api/extmark.c
@@ -106,9 +106,12 @@ static Array extmark_to_array(ExtmarkInfo extmark, bool id, bool add_dict)
if (add_dict) {
Dictionary dict = ARRAY_DICT_INIT;
+ PUT(dict, "right_gravity", BOOLEAN_OBJ(extmark.right_gravity));
+
if (extmark.end_row >= 0) {
PUT(dict, "end_row", INTEGER_OBJ(extmark.end_row));
PUT(dict, "end_col", INTEGER_OBJ(extmark.end_col));
+ PUT(dict, "end_right_gravity", BOOLEAN_OBJ(extmark.end_right_gravity));
}
Decoration *decor = &extmark.decor;