Skip to content

Commit

Permalink
Use -b flag to avoid outer closure
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Feb 26, 2012
1 parent 05a1816 commit 8df21ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/coffee_tools.vim
Expand Up @@ -34,7 +34,7 @@ endfunction

function! coffee_tools#InitPreview()
let b:preview_file = tempname().'.js'
let b:preview_command = printf('coffee -p %s > %s 2>&1', shellescape(expand('%')), b:preview_file)
let b:preview_command = printf('coffee -bp %s > %s 2>&1', shellescape(expand('%')), b:preview_file)

autocmd BufWritePost <buffer>
\ if bufwinnr(b:preview_file) >= 0 |
Expand Down

0 comments on commit 8df21ad

Please sign in to comment.