branch: elpa/eat
commit dd2a176820b5003303d575f84c11b008e8fb44d4
Author: Akib Azmain Turja <a...@disroot.org>
Commit: Akib Azmain Turja <a...@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