Refactor: Vars: Make vimwiki_toc_header wiki local

Also: vimwiki_toc_header_level, vimwiki_toc_link_format
This commit is contained in:
Tinmarino
2020-07-30 15:27:19 -04:00
parent 5651e744a6
commit 787e95b910
4 changed files with 27 additions and 16 deletions

View File

@ -1116,7 +1116,7 @@ function! s:process_tag_h(line, id) abort
let h_id = s:escape_html_attribute(h_text)
let centered = (a:line =~# '^\s')
if h_text !=# vimwiki#vars#get_global('toc_header')
if h_text !=# vimwiki#vars#get_wikilocal('toc_header')
let a:id[h_level-1] = [h_text, a:id[h_level-1][1]+1]