Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use a separate history for VimGolf challenge ids

  • Loading branch information...
commit 42796a29575979c00adaf9944caada31baccd2ea 1 parent 82ae377
Adam Collard sparkiegeek authored committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  emacs/vimgolf.el
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).")
(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)
Please sign in to comment.
Something went wrong with that request. Please try again.