diff --git a/autoload/wiki/page.vim b/autoload/wiki/page.vim index 5b90d9af..e8a364fd 100644 --- a/autoload/wiki/page.vim +++ b/autoload/wiki/page.vim @@ -253,7 +253,7 @@ function! wiki#page#gather_toc_entries(local) abort " {{{1 " Parse current header let l:level = len(matchstr(l:line, '^#*')) let l:header = matchlist(l:line, g:wiki#rx#header_items)[2] - if l:header ==# 'Innhald' | continue | endif + if l:header ==# g:wiki_toc_title | continue | endif " Update header stack in order to have well defined anchor let l:depth = len(l:anchor_stack) diff --git a/autoload/wiki/template.vim b/autoload/wiki/template.vim index 71153278..a50d136b 100644 --- a/autoload/wiki/template.vim +++ b/autoload/wiki/template.vim @@ -13,7 +13,7 @@ function! wiki#template#init() abort " {{{1 \ 'date': strftime("%F"), \ 'name': expand('%:t:r'), \ 'origin_file': l:origin[0], - \ 'origin_lnum': l:origin[1], + \ 'origin_lnum': l:origin[1][1], \ 'path': expand('%:p'), \ 'path_wiki': wiki#paths#shorten_relative(expand('%:p')), \ 'time': strftime("%H:%M"), diff --git a/doc/wiki.txt b/doc/wiki.txt index f56d7190..f75a1069 100644 --- a/doc/wiki.txt +++ b/doc/wiki.txt @@ -158,7 +158,7 @@ OPTIONS *wiki-config-options* `Windows`: Standard temporary folder (based on |tempname()|) *g:wiki_cache_persistent* - Specify whether to use persistant caching. + Specify whether to use persistent caching. Default value: 1