Fix folding of headers
This commit is contained in:
@@ -9,7 +9,7 @@ setlocal commentstring=#%s
|
|||||||
|
|
||||||
function! OrgFold()
|
function! OrgFold()
|
||||||
let l:depth = match(getline(v:lnum), '\(^\*\+\)\@<=\( .*$\)\@=')
|
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
|
return ">" . l:depth
|
||||||
endif
|
endif
|
||||||
return "="
|
return "="
|
||||||
|
|||||||
Reference in New Issue
Block a user