summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-03-06 02:02:51 -0500
committerKyle Meyer <kyle@kyleam.com>2015-03-06 02:02:51 -0500
commit1e7bc9f3ff362f53a87c02999ea6928535770c65 (patch)
tree34d0460456bc11736c44890a649f9ad39025ef11
parenta9928fc5a23f05ac7eeada1dd9ed3e2d7a2514db (diff)
downloadbog-1e7bc9f3ff362f53a87c02999ea6928535770c65.tar.gz
Avoid infinite recursion when exit Bog View 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