Permalink
Browse files

Merge branch 'sparkiegeek-separate-vimgolf-history' into dev

  • Loading branch information...
2 parents 82ae377 + 42796a2 commit e57e927e5235c29722fb0f6132e304be52763cbf @timvisher committed Feb 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 emacs/vimgolf.el
View
@@ -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 e57e927

Please sign in to comment.