branch: elpa/gnosis commit 92e7376b450c628fc57d2666a4ebef37ac87f119 Author: Thanos Apollo <pub...@thanosapollo.org> Commit: Thanos Apollo <pub...@thanosapollo.org>
display-basic-answer: Ensure proper buffer is used at point-max. --- gnosis.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnosis.el b/gnosis.el index fa87fc30fb..4558e5f9b6 100644 --- a/gnosis.el +++ b/gnosis.el @@ -491,6 +491,8 @@ Applies highlighting for CORRECT & FALSE." "Display ANSWER. When SUCCESS nil, display USER-INPUT as well" + (with-current-buffer gnosis-review-buffer-name + (goto-char (point-max)) (insert "\n\n" (propertize "Answer:" 'face 'gnosis-face-directions) " " @@ -502,9 +504,7 @@ When SUCCESS nil, display USER-INPUT as well" (propertize "Your answer:" 'face 'gnosis-face-directions) " " (propertize user-input 'face 'gnosis-face-false)) - (gnosis-center-current-line))) - - + (gnosis-center-current-line)))) (defun gnosis-display-hint (hint) "Display HINT."