From bc730946190c1b6409501e77ac54ccaceec37791 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sun, 7 Jul 2013 15:04:26 +0000 Subject: [PATCH] remove detection variables, always enable them --- autoload/airline.vim | 6 +++--- doc/airline.txt | 4 ---- plugin/airline.vim | 2 -- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index 74782bf..2975609 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -87,7 +87,7 @@ function! airline#update_statusline(active) let sl = l:mode_color let sl.= a:active - \ ? '%{airline#update_highlight()} '.s:get_section('a').' %{g:airline_paste_detection && &paste ? g:airline_paste_symbol." " : ""}' + \ ? '%{airline#update_highlight()} '.s:get_section('a').' %{&paste ? g:airline_paste_symbol." " : ""}' \ : ' %#Al9#' let sl.=l:mode_sep_color.g:airline_left_sep.l:info_color let sl.=' '.s:get_section('b').' ' @@ -115,10 +115,10 @@ function! airline#update_highlight() let l:mode = ['normal'] endif - if g:airline_modified_detection && &modified + if &modified call add(l:mode, 'modified') endif - if g:airline_paste_detection && &paste + if &paste call add(l:mode, 'paste') endif diff --git a/doc/airline.txt b/doc/airline.txt index 6f8a9a8..5030e43 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -40,10 +40,6 @@ values): let g:airline_right_sep='<' < -* enable/disable color change when buffer is modified -> - let g:airline_modified_detection=1 -< * enable/disable fugitive integration > diff --git a/plugin/airline.vim b/plugin/airline.vim index c16200b..df71ad8 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -18,8 +18,6 @@ call s:check_defined('g:airline_readonly_symbol', exists('g:airline_powerline_fo call s:check_defined('g:airline_linecolumn_prefix', exists('g:airline_powerline_fonts')?' ':':') call s:check_defined('g:airline_paste_symbol', 'PASTE') call s:check_defined('g:airline_theme', 'dark') -call s:check_defined('g:airline_modified_detection', 1) -call s:check_defined('g:airline_paste_detection', 1) call s:check_defined('g:airline_exclude_filenames', ['DebuggerWatch','DebuggerStack','DebuggerStatus']) call s:check_defined('g:airline_exclude_filetypes', ['netrw','diff','undotree','gundo','nerdtree','tagbar'])