From 129f6f10e9b866cee75079ddd0ce0b4d34412727 Mon Sep 17 00:00:00 2001 From: rhysd Date: Wed, 10 Feb 2016 01:13:56 +0900 Subject: [PATCH] ensure modifiable before put contents (#11) --- autoload/committia.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/committia.vim b/autoload/committia.vim index 38ccb4c..23f0290 100644 --- a/autoload/committia.vim +++ b/autoload/committia.vim @@ -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