aboutsummaryrefslogtreecommitdiff
path: root/vis-text-objects.c
diff options
context:
space:
mode:
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;
}