rmail-summary-mark-deleted optional argument fix

* lisp/mail/rmailsum.el (rmail-summary-mark-deleted): Argument N
is optional, so don't assume that it's a number (bug#39076).
This commit is contained in:
Lars Ingebrigtsen 2021-01-29 08:34:43 +01:00
parent bbad7904e2
commit 90ce2b8034

View file

@ -974,8 +974,9 @@ a negative argument means to delete and move forward."
(delete-char 1)
(insert "D"))
;; Discard cached new summary line.
(with-current-buffer rmail-buffer
(aset rmail-summary-vector (1- n) nil))))
(when n
(with-current-buffer rmail-buffer
(aset rmail-summary-vector (1- n) nil)))))
(beginning-of-line))
(defun rmail-summary-update-line (n)