X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1ad3347ca0eab02d0c6d099d45c14463f9a76632..5c9ce6b5230654c73d3bc3311f9dff7c4404f228:/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