branch: externals/vc-jj
commit 1b26a80078934e635bab5895a8480924578f84c6
Author: Rudi Schlatte <r...@constantly.at>
Commit: Wojciech Siewierski <vi...@noreply.codeberg.org>

    Properly call erase-buffer in vc-print-log
---
 vc-jj.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vc-jj.el b/vc-jj.el
index 878a45b5c4..6a2111473e 100644
--- a/vc-jj.el
+++ b/vc-jj.el
@@ -251,7 +251,6 @@ self.hidden(), \"\\n\"
   ;; FIXME: limit can be a revision string, in which case we should
   ;; print revisions between start-revision and limit
   (let ((inhibit-read-only t)
-        (erase-buffer)
         (args (append
                (when limit
                  (list "-n" (number-to-string limit)))
@@ -260,6 +259,7 @@ self.hidden(), \"\\n\"
                (when vc-jj-colorize-log (list "--color" "always"))
                (list "-T" vc-jj-log-template "--")
                files)))
+    (with-current-buffer buffer (erase-buffer))
     (apply #'call-process "jj" nil buffer nil "log" args)
     (when vc-jj-colorize-log
       (with-current-buffer buffer

Reply via email to