diff --git a/docs/changelog.rst b/docs/changelog.rst index d738f08b0..0217ac128 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -119,6 +119,8 @@ Detailed list of changes - Fix a segfault when using the :ac:`copy_ansi_to_clipboard` action (:iss:`8682`) +- Fix a crash when using linear easing curves for animations (:iss:`8692`) + 0.42.1 [2025-05-17] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/animation.c b/kitty/animation.c index 8590b5066..2ac4a8a77 100644 --- a/kitty/animation.c +++ b/kitty/animation.c @@ -184,7 +184,7 @@ apply_easing_curve(const Animation *a, double val, monotonic_t duration) { animation_function *f = a->functions + idx; double interval_size = 1. / a->count, interval_start = idx * interval_size; double scaled_val = (val - interval_start) / interval_size; - double ans = f->curve(&f->params, scaled_val, duration); + double ans = f->curve(f->params, scaled_val, duration); return f->y_at_start + unit_value(ans) * f->y_size; }