make modified/paste detection an option

This commit is contained in:
Bailey Ling committed 2013-07-22 21:23:41 +00:00
1 parent fce0e3e8da
commit 221864cfdc
4 files changed
+16 -4

No files matched your search

+2 -2
View File
@@ -167,8 +167,8 @@ function! airline#update_highlight()
let l:mode = ['inactive']
endif
if &modified | call add(l:mode, 'modified') | endif
if &paste | call add(l:mode, 'paste') | endif
if g:airline_detect_modified && &modified | call add(l:mode, 'modified') | endif
if g:airline_detect_paste && &paste | call add(l:mode, 'paste') | endif
let mode_string = join(l:mode)
if get(w:, 'airline_lastmode', '') != mode_string