summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-08-18 22:17:48 +0100
committerjao <jao@gnu.org>2021-08-18 22:17:48 +0100
commit23f65b1d7b7bf07364d7e5c3016dfc6cbc202dbd (patch)
tree23c197a5258ea7836f06e05e280cf21318107f73
parentbfa005de36f4f80f34d622276676a629ca7918f9 (diff)
downloadelibs-23f65b1d7b7bf07364d7e5c3016dfc6cbc202dbd.tar.gz
elibs-23f65b1d7b7bf07364d7e5c3016dfc6cbc202dbd.tar.bz2
fix for jao-notmuch-show-images
-rw-r--r--lib/net/jao-notmuch.el4
1 files changed, 2 insertions, 2 deletions
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)")