mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-09 21:46:39 +08:00
remove redundant highlight group.
This commit is contained in:
@@ -19,7 +19,11 @@ function! s:prototype.add_section(group, contents)
|
||||
endif
|
||||
endif
|
||||
|
||||
let self._line .= '%#'.a:group.'#'.a:contents
|
||||
if self._curgroup != a:group
|
||||
let self._line .= '%#'.a:group.'#'
|
||||
endif
|
||||
|
||||
let self._line .= a:contents
|
||||
let self._curgroup = a:group
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user