branch: externals/ellama commit 1b712174345a7c4ef2bafbfdb0952c037a8ea43f Merge: e308515eec 984b772c31 Author: Sergey Kostyaev <s-kosty...@users.noreply.github.com> Commit: GitHub <nore...@github.com>
Merge pull request #232 from s-kostyaev/fix-scroll Fix scroll --- NEWS.org | 2 ++ ellama.el | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS.org b/NEWS.org index 04f19be19e..e7b76e2678 100644 --- a/NEWS.org +++ b/NEWS.org @@ -1,3 +1,5 @@ +* Version 1.2.5 +- Fix scroll function. * Version 1.2.4 - Improve the default behavior of auto-scroll. It will now move the cursor to the end of the ellama-chat buffer and enable auto-scroll diff --git a/ellama.el b/ellama.el index a0fb70161a..20c92023ed 100644 --- a/ellama.el +++ b/ellama.el @@ -6,7 +6,7 @@ ;; URL: http://github.com/s-kostyaev/ellama ;; Keywords: help local tools ;; Package-Requires: ((emacs "28.1") (llm "0.22.0") (spinner "1.7.4") (transient "0.7") (compat "29.1") (posframe "1.4.0")) -;; Version: 1.2.4 +;; Version: 1.2.5 ;; SPDX-License-Identifier: GPL-3.0-or-later ;; Created: 8th Oct 2023 @@ -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))))