aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/extmark.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-01-28 12:38:56 +0100
committerGitHub <noreply@github.com>2022-01-28 12:38:56 +0100
commitca3e382a4f39c5622fc5e10b784df10b4813fc0e (patch)
tree442ef7a6e523e7b5b4d7f238ef3d2353243ea896 /src/nvim/api/extmark.c
parent530c65b17ade3f5db70af5746f4eed945efdfcfa (diff)
parent3d9ae9d2dad88a4e2c2263dc7e256657842244c0 (diff)
downloadrneovim-ca3e382a4f39c5622fc5e10b784df10b4813fc0e.tar.gz
rneovim-ca3e382a4f39c5622fc5e10b784df10b4813fc0e.tar.bz2
rneovim-ca3e382a4f39c5622fc5e10b784df10b4813fc0e.zip
Merge pull request #17183 from notomo/expose-extmark-right-gravity
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;