Fix list folding bug (PR #705)

Closes #680
This commit is contained in:
Steve Dondley 2019-05-11 16:01:45 -04:00 committed by Rane Brown
parent 8c6bc81756
commit cf8a16c5c7

View File

@ -1689,7 +1689,9 @@ function! vimwiki#lst#fold_level(lnum)
if child_item.type != 0
return 'a1'
elseif next_item.type == 0
return 's1'
let c_indent = indent(a:lnum) / &shiftwidth
let n_indent = indent(a:lnum+1) / &shiftwidth
return 's' . (c_indent - n_indent)
endif
endif
return '='