Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Pop open victory buffer on success. Put victory buffer in vimgolf mod…

…e to enable keys. EOM
  • Loading branch information...
commit 324516f95b8173963f32eb1eb2ff80ce9a75049b 1 parent 869fee4
Tim Visher authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  emacs/vimgolf.el
3  emacs/vimgolf.el
@@ -148,6 +148,7 @@ unknown key sequence was entered).")
148 148 "Refresh the contents of the keystrokes log buffer."
149 149 (let ((deactivate-mark nil))
150 150 (with-current-buffer (get-buffer-create vimgolf-keystrokes-buffer-name)
  151 + (vimgolf-mode t)
151 152 (erase-buffer)
152 153 (insert (format "Challenge ID: %s\n%s\n\n" vimgolf-challenge (vimgolf-challenge-url vimgolf-challenge))
153 154 (format "Keystrokes (%d):\n\n" (vimgolf-count-keystrokes))
@@ -193,6 +194,8 @@ unknown key sequence was entered).")
193 194 (vimgolf-diff))
194 195
195 196 (defun vimgolf-right-solution ()
  197 + (delete-other-windows)
  198 + (switch-to-buffer vimgolf-keystrokes-buffer-name)
196 199 (message "Hurray! You solved %s in %d keystrokes!" vimgolf-challenge (vimgolf-count-keystrokes)))
197 200
198 201 (defun vimgolf-submit ()

0 comments on commit 324516f

Please sign in to comment.
Something went wrong with that request. Please try again.