]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
CLI/reply: support --duplicate argument
[notmuch] / emacs / notmuch-show.el
index 05524c2eec0a372db4b3097a14488d9428c69516..0d9bf0710d4c58d369f7674e4533279824baea78 100644 (file)
@@ -555,7 +555,7 @@ message at DEPTH in the current thread."
      (if (> file-count 1)
         (let ((txt (format "%d/%d\n" duplicate file-count)))
           (concat
-           (notmuch-show-spaces-n (- (window-width) (+ (current-column) (length txt))))
+           (notmuch-show-spaces-n (max 0 (- (window-width) (+ (current-column) (length txt)))))
            txt))
        "\n"))
     (overlay-put (make-overlay start (point))