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

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

[nongnu] elpa/eat fd9e8fddc3 2/2: Fix shell prompt navigation


From: ELPA Syncer
Subject: [nongnu] elpa/eat fd9e8fddc3 2/2: Fix shell prompt navigation
Date: Mon, 12 Dec 2022 14:58:37 -0500 (EST)

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

    Fix shell prompt navigation
    
    * eat.el (eat--post-prompt): Set 'eat--shell-prompt-begin' to
    nil at the very end to ensure prompt end text properties are
    put.
---
 eat.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eat.el b/eat.el
index 10a07ca651..f34537fdf8 100644
--- a/eat.el
+++ b/eat.el
@@ -4317,13 +4317,13 @@ If HOST isn't the host Emacs is running on, don't do 
anything."
              (list 'eat--before-string before-str
                    'eat--shell-prompt-mark-id identifier
                    'eat--shell-prompt-mark-overlay ov))
-            (push ov eat--shell-prompt-mark-overlays)))
-        (setq eat--shell-prompt-begin nil))))
+            (push ov eat--shell-prompt-mark-overlays))))))
   (when eat--shell-prompt-begin
     (when (< eat--shell-prompt-begin (point))
       ;; Put a text property to allow previous or next prompts.
       (put-text-property (1- (point)) (point)
-                         'eat--shell-prompt-end t))))
+                         'eat--shell-prompt-end t)))
+  (setq eat--shell-prompt-begin nil))
 
 (defun eat--correct-shell-prompt-mark-overlays (buffer)
   "Correct all overlays used to add mark before shell prompt.



reply via email to

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