Permalink
Browse files

Stop airline from changing 'statusline'

Trying to address #37.
  • Loading branch information...
1 parent a1dc4b6 commit 52326f6d333cdbb9e9c6d6772af87f4f39c00526 @xaizek xaizek committed Sep 22, 2015
Showing with 6 additions and 0 deletions.
  1. +6 −0 plugin/extradite.vim
View
6 plugin/extradite.vim
@@ -68,6 +68,9 @@ function! s:Extradite(bang) abort
autocmd BufEnter <buffer> call s:ExtraditeSyntax()
autocmd BufLeave <buffer> hi! link CursorLine NONE
autocmd BufLeave <buffer> hi! link Cursor NONE
+ " airline overwrites 'statusline' option for this window, request it to be
+ " disabled
+ let w:airline_disabled = 1
call s:ExtraditeDiffToggle()
let t:extradite_bufnr = bufnr('')
silent doautocmd User Extradite
@@ -265,6 +268,9 @@ function! s:SimpleDiff(git_cmd,a,b) abort
if !exists('b:extradite_simplediff_bufnr') || b:extradite_simplediff_bufnr == -1
exec g:extradite_diff_split
enew!
+ " airline causes strange effects related to status line on window change,
+ " this doesn't even disable it, but fixes the effects
+ let w:airline_disabled = 1
command! -buffer -bang Extradite :execute s:Extradite(<bang>0)
nnoremap <buffer> <silent> q :<C-U>call <SID>ExtraditeClose()<CR>
let bufnr = bufnr('')

0 comments on commit 52326f6

Please sign in to comment.