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

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

[nongnu] elpa/eat dd2a176820 2/2: * eat.el (eat-prompt-newline): Make ri


From: ELPA Syncer
Subject: [nongnu] elpa/eat dd2a176820 2/2: * eat.el (eat-prompt-newline): Make ring if needed
Date: Thu, 14 Sep 2023 12:59:40 -0400 (EDT)

branch: elpa/eat
commit dd2a176820b5003303d575f84c11b008e8fb44d4
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>

    * eat.el (eat-prompt-newline): Make ring if needed
---
 eat.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eat.el b/eat.el
index cf7ff84a69..2b67ea9193 100644
--- a/eat.el
+++ b/eat.el
@@ -5798,6 +5798,9 @@ MODE should one of:
   (if (not (<= (eat-term-end eat--terminal) (point)))
       (call-interactively #'newline)
     (unless (= (eat-term-end eat--terminal) (point-max))
+      (unless eat--prompt-input-ring
+        (setq eat--prompt-input-ring
+              (make-ring eat-prompt-input-ring-size)))
       (ring-insert eat--prompt-input-ring
                    (buffer-substring-no-properties
                     (eat-term-end eat--terminal) (point-max))))



reply via email to

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