for empty sections, make test return true

fixes #1231
This commit is contained in:
Christian Brabandt 2016-09-24 22:06:41 +02:00
parent 513afd25bc
commit 3d667c32d3
1 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,9 @@ function! s:section_is_empty(self, content)
if match(a:content, '%#__accent_[^#]*#.*__restore__#') > -1
return 0
endif
if empty(a:content)
return 1
endif
let list=matchlist(a:content, '%{\zs.\{-}\ze}', 1, start)
if empty(list)
return 0 " no function in statusline text