X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/76d8fbf3cc4445bd1c0f26033d207d4b1e3966f1..13c836661996b9c03bbcaf6b56a49d3925ffe925:/test/toc.vader?ds=sidebyside 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