Fix folding of headers

This commit is contained in:
Alex Vear
2019-02-24 01:28:41 +00:00
parent 190df69e2b
commit b56a7448e6

View File

@@ -9,7 +9,7 @@ setlocal commentstring=#%s
function! OrgFold()
let l:depth = match(getline(v:lnum), '\(^\*\+\)\@<=\( .*$\)\@=')
if l:depth > 0 && synIDattr(synID(v:lnum, 1, 1), 'name') ~=# 'orgHeading'
if l:depth > 0 && synIDattr(synID(v:lnum, 1, 1), 'name') =~# 'orgHeading'
return ">" . l:depth
endif
return "="