From 23f65b1d7b7bf07364d7e5c3016dfc6cbc202dbd Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 18 Aug 2021 22:17:48 +0100 Subject: fix for jao-notmuch-show-images --- lib/net/jao-notmuch.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/net') diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el index ad5657f..e067714 100644 --- a/lib/net/jao-notmuch.el +++ b/lib/net/jao-notmuch.el @@ -206,8 +206,8 @@ (defun jao-notmuch-show-images () (interactive) (save-window-excursion - (when (and (jao-notmuch-goto-message-buffer nil t) - (derived-mode-p 'notmuch-show-mode)) + (when (or (derived-mode-p 'notmuch-show-mode) + (jao-notmuch-goto-message-buffer nil t)) (goto-char (point-min)) (when (re-search-forward "^\\[ text/html " nil t) (when (looking-at-p "(hidden)") -- cgit v1.2.3