]> 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:39:28 +0000 (19:39 +0100)
* lisp/net/rcirc.el (rcirc-print): Always move to the beginning of the
line, before setting any markers.

lisp/net/rcirc.el

index da7c20b5e0a6d253e91d9045add12a7070e4232b..5e4aa5e1198d1764d81bbc8c23090e0c2ae5c8e5 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))