]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix issues with processing out-of-order IRC messages
authorPhilip Kaludercic <philipk@posteo.net>
Thu, 26 Jan 2023 18:39:16 +0000 (19:39 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 26 Jan 2023 18:41:25 +0000 (19:41 +0100)
* lisp/net/rcirc.el (rcirc-print): Always move to the beginning of the
line, before setting any markers.

lisp/net/rcirc.el

index 77a9d70ac9ee4237649765555ae7c8eaa5e8ec32..97a314eb8abac5db158144ed0623300b271e8848 100644 (file)
@@ -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))