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