Fix: VimwikiTOC removes next non-empty line (Issue #910)

This commit is contained in:
Tinmarino
2020-08-06 17:02:51 -04:00
parent 8a50d022b1
commit 0693e41132
4 changed files with 41 additions and 6 deletions

View File

@ -35,13 +35,15 @@ Execute (VimwikiGenerateLinks x 2):
call append('$', 'Last Line')
VimwikiGenerateLinks
Expect (The links with a header):
Expect (The links with a header (bis)):
= Generated Links =
- [[buzz_bozz]]
- [[index]]
Last Line
Execute (Clean Test.wiki):
call DeleteFile('$HOME/testwiki/Test.wiki')

View File

@ -30,6 +30,37 @@
#
# Start {{{1
Given vimwiki (One heading: May delete last line (#910) {{{1):
# Basic-title
Execute (VimwikiTOC x 1):
call SetSyntax('markdown')
set sw=8
VimwikiTOC
Expect(Good content with 1 item x 1):
# Contents
- [Basic-title](#basic-title)
# Basic-title
Execute (VimwikiTOC x 2):
call SetSyntax('markdown')
set sw=8
VimwikiTOC
VimwikiTOC
Expect(Good content with 1 item x 1):
# Contents
- [Basic-title](#basic-title)
# Basic-title
Given vimwiki (With link header (#182) {{{1):
# A [link](anything here) B
# t[link](anything here)