diff --git a/autoload/airline/builder.vim b/autoload/airline/builder.vim index 6c2a494c..426b3e2c 100644 --- a/autoload/airline/builder.vim +++ b/autoload/airline/builder.vim @@ -199,7 +199,12 @@ function! s:section_is_empty(self, content) return 0 endif - if empty(a:content) + " special case: When the content is %=, that is the + " separation marker, which switches between left- and + " right-aligned content. + " Consider that to be empty, so that the previous previous + " group is correctly remembered in the builder() function + if empty(a:content) || a:content is# '%=' return 1 endif