X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1ad3347ca0eab02d0c6d099d45c14463f9a76632..02d53bbba3becb82a77688ac4f02064f5686aeef:/test/toc.vader 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