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