Skip to content

Commit

Permalink
Use a separate history for VimGolf challenge ids
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkiegeek authored and timvisher committed Feb 27, 2012
1 parent 82ae377 commit 42796a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emacs/vimgolf.el
Expand Up @@ -94,6 +94,7 @@ with `C-c C-v` prefixes to help in playing VimGolf.
:group 'vimgolf)

(defvar vimgolf-challenge nil)
(defvar vimgolf-challenge-history nil)

(defvar vimgolf-prior-window-configuration nil)

Expand Down Expand Up @@ -331,7 +332,7 @@ unknown key sequence was entered).")
;;;###autoload
(defun vimgolf (challenge-id)
"Open a VimGolf Challenge"
(interactive "sChallenge ID: ")
(interactive (list (read-from-minibuffer "Challenge ID: " nil nil nil 'vimgolf-challenge-history)))
(url-retrieve (vimgolf-challenge-url challenge-id) 'vimgolf-setup `(,challenge-id)))

(provide 'vimgolf)
Expand Down

0 comments on commit 42796a2

Please sign in to comment.