diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-01-12 00:21:18 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-12 00:21:18 -0700 |
| commit | 1b483c2cb47e2f64726e1bbb0923a4fa40ac8126 (patch) | |
| tree | cf52190dbe8a58633e1c074d3ee5f560c9d92e24 /vis-motions.c | |
| parent | 0f31ef53420b755c3978818bcd2e5a86e141413d (diff) | |
| download | vis-1b483c2cb47e2f64726e1bbb0923a4fa40ac8126.tar.gz vis-1b483c2cb47e2f64726e1bbb0923a4fa40ac8126.tar.xz | |
array: delete oneliners
same as buffer commit Array is completely visible
Diffstat (limited to 'vis-motions.c')
| -rw-r--r-- | vis-motions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-motions.c b/vis-motions.c index 1d3f49a..241bf37 100644 --- a/vis-motions.c +++ b/vis-motions.c @@ -271,7 +271,7 @@ int vis_motion_register(Vis *vis, void *data, VisMotionFunction *motion) { move->data = data; if (array_add_ptr(&vis->motions, move)) - return VIS_MOVE_LAST + array_length(&vis->motions) - 1; + return VIS_MOVE_LAST + vis->motions.len - 1; free(move); return -1; } |
