From ec86f6651052e7af8776cbf20698e0815d9a8096 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 25 Jul 2013 22:09:17 +0000 Subject: [PATCH] move paste detection into statusline and check enabled --- autoload/airline.vim | 1 + plugin/airline.vim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index 5913cd9f..62ffd9cb 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -99,6 +99,7 @@ function! airline#update_statusline(active) let sl = '%{airline#update_highlight()}' if a:active let sl.=l:mode_color.' '.s:get_section('a').' ' + let sl.='%{g:airline_detect_paste && &paste ? g:airline_paste_symbol." " : ""}' let sl.=l:mode_sep_color let sl.=a:active ? g:airline_left_sep : g:airline_left_alt_sep let sl.=l:info_color diff --git a/plugin/airline.vim b/plugin/airline.vim index 8e79188a..cbf9917b 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -44,7 +44,7 @@ function! s:init() call airline#extensions#load() call airline#update_externals() call airline#load_theme(g:airline_theme) - call s:check_defined('g:airline_section_a', '%{g:airline_current_mode_text} %{&paste ? g:airline_paste_symbol." " : ""}') + call s:check_defined('g:airline_section_a', '%{g:airline_current_mode_text}') call s:check_defined('g:airline_section_b', '%{g:airline_externals_fugitive}') call s:check_defined('g:airline_section_c', g:airline_externals_bufferline) call s:check_defined('g:airline_section_gutter', '')