summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bog.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/bog.el b/bog.el
index 374e5ae..c6fc564 100644
--- a/bog.el
+++ b/bog.el
@@ -1360,7 +1360,8 @@ if ARG is omitted or nil.
(t
(remove-hook 'org-font-lock-hook 'bog-fontify-non-heading-citekeys)
(font-lock-fontify-buffer)
- (bog-view-mode -1))))
+ (when (bound-and-true-p bog-view-mode)
+ (bog-view-mode -1)))))
;;; View minor mode