Permalink
Browse files

Use a separate history for VimGolf challenge ids

  • Loading branch information...
1 parent 82ae377 commit 42796a29575979c00adaf9944caada31baccd2ea @sparkiegeek sparkiegeek committed with Jan 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 emacs/vimgolf.el
View
3 emacs/vimgolf.el
@@ -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)
@@ -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)

0 comments on commit 42796a2

Please sign in to comment.