aboutsummaryrefslogtreecommitdiff
path: root/vis-modes.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-modes.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-modes.c')
-rw-r--r--vis-modes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis-modes.c b/vis-modes.c
index f6d2b26..a6ab87b 100644
--- a/vis-modes.c
+++ b/vis-modes.c
@@ -35,7 +35,7 @@ err:
void vis_action_free(Vis *vis, KeyAction *action) {
if (!action)
return;
- size_t len = array_length(&vis->actions_user);
+ size_t len = vis->actions_user.len;
for (size_t i = 0; i < len; i++) {
if (action == array_get_ptr(&vis->actions_user, i)) {
keyaction_free(action);
@@ -56,7 +56,7 @@ KeyBinding *vis_binding_new(Vis *vis) {
void vis_binding_free(Vis *vis, KeyBinding *binding) {
if (!binding)
return;
- size_t len = array_length(&vis->bindings);
+ size_t len = vis->bindings.len;
for (size_t i = 0; i < len; i++) {
if (binding == array_get_ptr(&vis->bindings, i)) {
if (binding->alias)