X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/76d8fbf3cc4445bd1c0f26033d207d4b1e3966f1..076fb27c9463a095812227deef2c85cfa977f075:/test/toc.vader diff --git a/test/toc.vader b/test/toc.vader index a61e04b..2510edc 100644 --- a/test/toc.vader +++ b/test/toc.vader @@ -163,3 +163,23 @@ Expect (multiple headers): atx h1 setex h2 atx h3 2 + +Execute: + :lclose + +Given markdown; +# header 1 + +## header 2 + +### header 3 + +Execute (Toc cursor on the current header): + normal! 4G + :Toc + AssertEqual line('.'), 2 + :lclose + normal! G + :Toc + AssertEqual line('.'), 3 + :lclose