aboutsummaryrefslogtreecommitdiff
path: root/vis-text-objects.c
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2025-01-12 00:21:18 -0700
committerRandy Palamar <randy@rnpnr.xyz>2025-01-12 00:21:18 -0700
commit1b483c2cb47e2f64726e1bbb0923a4fa40ac8126 (patch)
treecf52190dbe8a58633e1c074d3ee5f560c9d92e24 /vis-text-objects.c
parent0f31ef53420b755c3978818bcd2e5a86e141413d (diff)
downloadvis-1b483c2cb47e2f64726e1bbb0923a4fa40ac8126.tar.gz
vis-1b483c2cb47e2f64726e1bbb0923a4fa40ac8126.tar.xz
array: delete oneliners
same as buffer commit Array is completely visible
Diffstat (limited to 'vis-text-objects.c')
-rw-r--r--vis-text-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-text-objects.c b/vis-text-objects.c
index 3368e07..a0f2bbb 100644
--- a/vis-text-objects.c
+++ b/vis-text-objects.c
@@ -13,7 +13,7 @@ int vis_textobject_register(Vis *vis, int type, void *data, VisTextObjectFunctio
obj->data = data;
if (array_add_ptr(&vis->textobjects, obj))
- return LENGTH(vis_textobjects) + array_length(&vis->textobjects) - 1;
+ return LENGTH(vis_textobjects) + vis->textobjects.len - 1;
free(obj);
return -1;
}