diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-13 16:07:55 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-13 16:07:55 +0000 |
commit | 6a5cd2255b409b956a2582e062b39131639a9564 (patch) | |
tree | 07c3ff983faa1f97827ee42c08320611f53dbb7f /sx-question-mode.el | |
parent | 71e8f1455f40e19bae24e93c308ab0696535c41e (diff) |
Fix window managing
Diffstat (limited to 'sx-question-mode.el')
-rw-r--r-- | sx-question-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el index 199e082..686d357 100644 --- a/sx-question-mode.el +++ b/sx-question-mode.el @@ -184,7 +184,8 @@ QUESTION must be a data structure returned by `json-read'." (sx-assoc-let question (mapc #'sx-question-mode--print-section .answers)) (goto-char (point-min)) - (sx-question-mode-next-section)) + (with-selected-window sx-question-mode--window + (sx-question-mode-next-section))) (defun sx-question-mode--print-section (data) "Print a section corresponding to DATA. |