Fix TOC space width for multibyte chars (#92)
This commit is contained in:
parent
0a8cbaafd9
commit
5beea84ae8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user