X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/76d8fbf3cc4445bd1c0f26033d207d4b1e3966f1..d3dbf4b17b64a1a4b0285d397ea556a3cba3f942:/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