Merge pull request #1269 from chrisbra/1231
for empty sections, make test return true
This commit is contained in:
commit
5ee2cd9acf
@ -162,6 +162,9 @@ function! s:section_is_empty(self, content)
|
|||||||
if match(a:content, '%#__accent_[^#]*#.*__restore__#') > -1
|
if match(a:content, '%#__accent_[^#]*#.*__restore__#') > -1
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
|
if empty(a:content)
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
let list=matchlist(a:content, '%{\zs.\{-}\ze}', 1, start)
|
let list=matchlist(a:content, '%{\zs.\{-}\ze}', 1, start)
|
||||||
if empty(list)
|
if empty(list)
|
||||||
return 0 " no function in statusline text
|
return 0 " no function in statusline text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user