From fd9e8fddc38c30ab4f850f3518d81dfa980163f4 Mon Sep 17 00:00:00 2001 From: Akib Azmain Turja Date: Mon, 12 Dec 2022 14:13:36 +0600 Subject: [PATCH] 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 10a07ca..f34537f 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.