Skip to content

Commit

Permalink
ensure modifiable before put contents (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Feb 9, 2016
1 parent 91e9e06 commit 129f6f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/committia.vim
Expand Up @@ -31,6 +31,7 @@ function! s:open_window(vcs, type, info, ft) abort
execute 'silent' g:committia_{coltype}{a:type}_window_opencmd bufname
let a:info[a:type . '_winnr'] = bufwinnr(bufname)
let a:info[a:type . '_bufnr'] = bufnr('%')
setlocal modifiable
call append(0, content)
execute 0
execute 'setlocal ft=' . a:ft
Expand Down

0 comments on commit 129f6f1

Please sign in to comment.