X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;fp=emacs%2Fnotmuch-show.el;h=0d9bf0710d4c58d369f7674e4533279824baea78;hb=24decfc1dd294b7546da53890f1c4d16105cc8d6;hp=05524c2eec0a372db4b3097a14488d9428c69516;hpb=5ea5a5557d9ad4cef67e61a83bb81abd44dc7f76;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 05524c2e..0d9bf071 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -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))