aboutsummaryrefslogtreecommitdiff
path: root/sx-question-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'sx-question-mode.el')
-rw-r--r--sx-question-mode.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el
index 39d352e..32cd112 100644
--- a/sx-question-mode.el
+++ b/sx-question-mode.el
@@ -526,6 +526,11 @@ If DIRECTION is negative, move backwards instead."
Letters do not insert themselves; instead, they are commands.
\\<sx-question-mode>
\\{sx-question-mode}"
+ ;; Determine how to close this window.
+ (unless (window-parameter nil 'quit-restore)
+ (set-window-parameter
+ nil 'quit-restore
+ `(other window nil ,(current-buffer))))
;; We call font-lock-region manually. See `sx-question-mode--fill-and-fontify'
(font-lock-mode -1)
(remove-hook 'after-change-functions 'markdown-check-change-for-wiki-link t)