* 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
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ If NO-CONFIRMATION is non-nil, don't ask user for confirmation."
(defun mu4e-mark-unmark-all ()
"Unmark all marked messages."
(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"))
(maphash
(lambda (docid val)