Skip to content

Commit

Permalink
Set cmdheight so the Press Enter when Done dialog is not shown, close…
Browse files Browse the repository at this point in the history
… the quickfix window prior to runnig to reset the contents and folding.
  • Loading branch information
duskhacker committed Jun 10, 2011
1 parent 7ba3f75 commit 181d165
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/sweet-vim-rspec.vim
@@ -1,5 +1,7 @@
function! SweetRunSpec(arg)
let l:oldCmdHeight = &cmdheight
echomsg "Running Specs..."
cclose
sleep 10m " Sleep long enough so MacVim redraws the screen so you can see the above message
if !exists('g:SweetVimRspecUseBundler')
let g:SweetVimRspecUseBundler = 1
Expand Down Expand Up @@ -30,7 +32,10 @@ function! SweetRunSpec(arg)
cw
set foldmethod=marker
set foldmarker=+-+,-+-
let &cmdheight = 2

echo "Done"
let &cmdheight = l:oldCmdHeight
endfunction
command! SweetSpec call SweetRunSpec("all")
command! SweetSpecRunAtLine call SweetRunSpec("atLine")
Expand Down

0 comments on commit 181d165

Please sign in to comment.