branch: externals/ellama commit 08366013fe81f328cc0970a070de7cccca79dadf Author: Sergey Kostyaev <sskosty...@gmail.com> Commit: Sergey Kostyaev <sskosty...@gmail.com>
Fix window handling in scroll stop function Updated the scroll stop function to correctly handle cases where the event argument is a window object. This prevents potential errors when accessing buffer properties. --- ellama.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ellama.el b/ellama.el index c31f40921e..4a690b5d52 100644 --- a/ellama.el +++ b/ellama.el @@ -1178,8 +1178,9 @@ EVENT is an argument for mweel scroll." (declare-function mwheel-event-window "mwheel") (with-current-buffer (window-buffer - (or (caadar event) - (mwheel-event-window event))) + (if (windowp (caadar event)) + (caadar event) + (mwheel-event-window event))) (setq ellama--stop-scroll t))) ;;;###autoload