X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1ad3347ca0eab02d0c6d099d45c14463f9a76632..13c836661996b9c03bbcaf6b56a49d3925ffe925:/test/toc.vader?ds=inline diff --git a/test/toc.vader b/test/toc.vader index 349592f..2510edc 100644 --- a/test/toc.vader +++ b/test/toc.vader @@ -166,3 +166,20 @@ Expect (multiple headers): 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