From af5e2afb8c862f348da75c25cb0a71fb444fe2a7 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 8 Nov 2020 11:20:11 -0700 Subject: also redraw the frame Signed-off-by: Sean Whitton --- org-d20.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/org-d20.el b/org-d20.el index ed3dc7f..198b585 100644 --- a/org-d20.el +++ b/org-d20.el @@ -467,7 +467,12 @@ the best N of them, e.g., 4d6k3." (goto-char (point-max)) (beginning-of-line) (recenter -1) - (redisplay)))) + ;; without the following line, the dice roll doesn't show up + ;; until `play-sound-file' has finished + (redisplay) + ;; and without this line, the split window appears selected + ;; even when it isn't + (redraw-frame)))) (if-let ((window (get-buffer-window "*Dice Trail*"))) (when (window-parameter window 'org-d20--dice-trail-split) (scroll window)) -- cgit v1.2.3