# HG changeset patch # User Steve Losh # Date 1355335320 18000 # Node ID a3dc06785e35de2097168af2aec8be739d7d6782 # Parent 06491cc1f4a227f1de701a336904967070d31671 Set the filetype properly in each buffer during init. diff -r 06491cc1f4a2 -r a3dc06785e35 autoload/splicelib/init.py --- a/autoload/splicelib/init.py Wed Dec 12 12:52:52 2012 -0500 +++ b/autoload/splicelib/init.py Wed Dec 12 13:02:00 2012 -0500 @@ -53,25 +53,32 @@ keys.bind('CC', ':cq') def setlocal_buffers(): + buffers.result.open() + filetype = vim.eval('&filetype') + buffers.original.open() vim.command('setlocal noswapfile') vim.command('setlocal nomodifiable') + vim.command('set filetype=%s' % filetype) if setting('wrap'): vim.command('setlocal ' + setting('wrap')) buffers.one.open() vim.command('setlocal noswapfile') vim.command('setlocal nomodifiable') + vim.command('set filetype=%s' % filetype) if setting('wrap'): vim.command('setlocal ' + setting('wrap')) buffers.two.open() vim.command('setlocal noswapfile') vim.command('setlocal nomodifiable') + vim.command('set filetype=%s' % filetype) if setting('wrap'): vim.command('setlocal ' + setting('wrap')) buffers.result.open() + vim.command('set filetype=%s' % filetype) if setting('wrap'): vim.command('setlocal ' + setting('wrap'))