Fix TOC space width for multibyte chars (#92)

This commit is contained in:
Karl Yngve Lervåg 2015-01-01 15:02:07 +01:00
parent 0a8cbaafd9
commit 5beea84ae8

View File

@ -117,7 +117,7 @@ function! s:print_entry(entry) " {{{1
let entry .= printf(s:num_format, level >= b:toc_secnumdepth + 2
\ ? '' : strpart(s:print_number(a:entry.number), 0, s:width))
endif
let entry .= printf('%-140s%s', a:entry.title, level)
let entry .= printf('%-140S%s', a:entry.title, level)
call append('$', entry)
endfunction