branch: elpa/gnosis
commit 2228091529b643db6961a0507bc0cb69485434d8
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>

    [fix] link-view-mode: Remove header-line when disabled.
---
 gnosis.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gnosis.el b/gnosis.el
index 351181ea49c..60c6330ef35 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -901,6 +901,7 @@ START is the search starting position, used internally for 
recursion."
 (defun gnosis-link-view--exit ()
   "Exit link view mode."
   (interactive nil gnosis-link-view-mode)
+  (gnosis-link-view-mode -1)
   (jump-to-register :gnosis-link-view)
   (exit-recursive-edit))
 
@@ -912,9 +913,11 @@ START is the search starting position, used internally for 
recursion."
   :interactive nil
   :lighter " Gnosis Link View"
   :keymap gnosis-link-view-mode-map
-  (setq header-line-format
-       (substitute-command-keys
-        " Return to review with: \\[gnosis-link-view--exit]")))
+  (if gnosis-link-view-mode
+      (setq-local header-line-format
+                 (substitute-command-keys
+                  " Return to review with: \\[gnosis-link-view--exit]"))
+    (setq-local header-line-format nil)))
 
 ;; TODO: Rewrite this! Tags should be an input of strings,
 ;; interactive handling should be done by "helper" funcs

Reply via email to