aboutsummaryrefslogtreecommitdiff
path: root/org-d20.el
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-11-08 11:20:11 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-11-08 11:20:11 -0700
commitaf5e2afb8c862f348da75c25cb0a71fb444fe2a7 (patch)
tree572057746ac8bff2badef0ad7ad67e989be1793e /org-d20.el
parenta64af30bd4e5ffe4d49813abe7776a0676c3c74f (diff)
downloadorg-d20-af5e2afb8c862f348da75c25cb0a71fb444fe2a7.tar.gz
also redraw the frame
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'org-d20.el')
-rw-r--r--org-d20.el7
1 files changed, 6 insertions, 1 deletions
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))