From 7612aaf701bbfb458d4be3ff2b232be406f12bfb Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 24 Aug 2016 21:27:49 +0200 Subject: [PATCH] Add User autocommand for Theme changing fixes #1226 --- autoload/airline.vim | 2 ++ doc/airline.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/autoload/airline.vim b/autoload/airline.vim index bd14a97f..2093cbe3 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -65,6 +65,8 @@ function! airline#switch_theme(name) let w:airline_lastmode = '' call airline#load_theme() + silent doautocmd User AirlineAfterTheme + " this is required to prevent clobbering the startup info message, i don't know why... call airline#check_mode(winnr()) endfunction diff --git a/doc/airline.txt b/doc/airline.txt index ee9cae60..ed636ebd 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -168,6 +168,7 @@ Airline comes with some user-defined autocommands. |AirlineAfterInit| after plugin is initialized, but before the statusline is replaced +|AirlineAfterTheme| after theme of the statusline has been changed |AirlineToggledOn| after airline is activated and replaced the statusline |AirlineToggledOff| after airline is deactivated and the statusline is restored to the original