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