* mu4e-mark: don't try to use a nil hash

This commit is contained in:
djcb
2012-05-14 15:58:20 +03:00
parent 301de6536f
commit 1dbb3aa395

View File

@ -208,7 +208,7 @@ If NO-CONFIRMATION is non-nil, don't ask user for confirmation."
(defun mu4e-mark-unmark-all () (defun mu4e-mark-unmark-all ()
"Unmark all marked messages." "Unmark all marked messages."
(interactive) (interactive)
(when (zerop (hash-table-count mu4e~mark-map)) (when (or (null mu4e~mark-map) (zerop (hash-table-count mu4e~mark-map)))
(error "Nothing is marked")) (error "Nothing is marked"))
(maphash (maphash
(lambda (docid val) (lambda (docid val)