From 3766a666b5592e26f35d9ae3f5d60a5c49285e7c Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Thu, 26 Jan 2023 19:39:16 +0100 Subject: [PATCH] ; Fix issues with processing out-of-order IRC messages * lisp/net/rcirc.el (rcirc-print): Always move to the beginning of the line, before setting any markers. --- lisp/net/rcirc.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 77a9d70ac9e..97a314eb8ab 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -2062,12 +2062,11 @@ connection." (next-single-property-change (point) 'hard) (forward-char 1) (throw 'exit nil)))) + (goto-char (line-beginning-position)) (set-marker-insertion-type rcirc-prompt-start-marker t) (set-marker-insertion-type rcirc-prompt-end-marker t) ;; run markup functions - (unless (bolp) - (newline)) (save-excursion (save-restriction (narrow-to-region (point) (point)) -- 2.39.5