Commit 80f60ab4 authored by Colin Walters's avatar Colin Walters
Browse files

(gamegrid-add-score-with-update-game-score): Handle the case where

we're already viewing the score file.
parent eacdfade
......@@ -450,8 +450,14 @@ static char *noname[] = {
(error "Failed to update game score file"))
(kill-buffer errbuf))
(find-file-read-only-other-window target))))
(let ((buf (find-buffer-visiting target)))
(if buf
(with-current-buffer buf
(revert-buffer nil t nil))
(display-buffer buf))
(find-file-read-only-other-window target))))))
(defun gamegrid-add-score-insecure (file score)
(setq file (expand-file-name file temporary-file-directory))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment