Skip to content

Commit

Permalink
Set nomodifiable in CoffeeCompile
Browse files Browse the repository at this point in the history
Running CoffeeCompile with an initial empty buffer could leave the CoffeeCompile
buffer as modifiable
  • Loading branch information
kchmck committed Aug 13, 2011
1 parent c455bf2 commit 36cb865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/coffee.vim
Expand Up @@ -179,7 +179,7 @@ function! s:CoffeeCompile(startline, endline, args)

" Set up scratch buffer.
setlocal bufhidden=wipe buftype=nofile
setlocal nobuflisted noswapfile nowrap
setlocal nobuflisted nomodifiable noswapfile nowrap

autocmd BufWipeout <buffer> call s:CoffeeCompileClose()
nnoremap <buffer> <silent> q :hide<CR>
Expand Down

0 comments on commit 36cb865

Please sign in to comment.