branch: externals/ellama
commit 4e924eccccc8a9305bc9e787d9c625a054e65dd5
Author: Sergey Kostyaev <sskosty...@gmail.com>
Commit: Sergey Kostyaev <sskosty...@gmail.com>

    Fix scroll
---
 ellama.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ellama.el b/ellama.el
index a0fb70161a..e983d4a0da 100644
--- a/ellama.el
+++ b/ellama.el
@@ -2073,7 +2073,7 @@ A function for programmatically scrolling the buffer 
during text generation."
             (buf (or buffer (current-buffer)))
             (window (get-buffer-window buf)))
     (with-selected-window window
-      (when (ellama-chat-buffer-p buffer)
+      (when (ellama-chat-buffer-p buf)
        (goto-char (point-max)))
       (recenter -1))))
 

Reply via email to