emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ellama 5e0c6ee1cc: Improve lines wrapping


From: ELPA Syncer
Subject: [elpa] externals/ellama 5e0c6ee1cc: Improve lines wrapping
Date: Sun, 24 Dec 2023 00:58:42 -0500 (EST)

branch: externals/ellama
commit 5e0c6ee1cc14550c7b823c3f38ed3d03e1183e7b
Author: Sergey Kostyaev <kostyaev.sergey2@wb.ru>
Commit: Sergey Kostyaev <kostyaev.sergey2@wb.ru>

    Improve lines wrapping
---
 NEWS.org  | 2 ++
 ellama.el | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/NEWS.org b/NEWS.org
index 7b588a6fa8..a30e74cabf 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -1,3 +1,5 @@
+* Version 0.4.8
+- Improve lines wrapping.
 * Version 0.4.7
 - Simplify scroll logic.
 * Version 0.4.6
diff --git a/ellama.el b/ellama.el
index 5d69f78af8..7160716c63 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.6.0") (spinner "1.7.4"))
-;; Version: 0.4.7
+;; Version: 0.4.8
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;; Created: 8th Oct 2023
 
@@ -218,6 +218,8 @@ when the request completes (with BUFFER current)."
                    (goto-char start)
                    (delete-region start end)
                    (insert (funcall filter text))
+                   ;; hard newlines will not be elliminated by `fill-region'
+                   (add-text-properties start (point) '(hard))
                    (fill-region start (point))
                    (goto-char pt))
                  (when-let ((ellama-auto-scroll)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]