Merge pull request #877 from remvee/feature/handle-mbsync-output

mu4e: Handle mbsync output in mu4e-update buffer
This commit is contained in:
Dirk-Jan C. Binnema
2016-07-10 00:04:25 +03:00
committed by GitHub

View File

@ -895,7 +895,11 @@ Also scrolls to the final line, and update the progress throbber."
;; Insert at end of buffer. Leave point alone. ;; Insert at end of buffer. Leave point alone.
(with-current-buffer (process-buffer proc) (with-current-buffer (process-buffer proc)
(goto-char (point-max)) (goto-char (point-max))
(insert msg)) (if (string-match ".*\r\\(.*\\)" msg)
(progn
(kill-line 0)
(insert (match-string 1 msg)))
(insert msg)))
;; Auto-scroll unless user is interacting with the window. ;; Auto-scroll unless user is interacting with the window.
(when (and (window-live-p procwin) (when (and (window-live-p procwin)
(not (eq (selected-window) procwin))) (not (eq (selected-window) procwin)))