From: Hiroshi Shirosaki Date: Thu, 14 Jan 2016 04:30:16 +0000 (+0900) Subject: Add `:lclose` after `:Toc` to fix test failure X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/fc679c4c0fd36b93ce0cc3e88348df9b35b6a43b?ds=sidebyside;hp=a20e6ac08d95e63ab6be26d3f1116c9250f0625e Add `:lclose` after `:Toc` to fix test failure Code block syntax test fails without `:lclose`. --- diff --git a/test/command-toc.vader b/test/command-toc.vader index a61e04b..349592f 100644 --- a/test/command-toc.vader +++ b/test/command-toc.vader @@ -163,3 +163,6 @@ Expect (multiple headers): atx h1 setex h2 atx h3 2 + +Execute: + :lclose diff --git a/test/folding-toc.vader b/test/folding-toc.vader index e15ed73..a02f1c2 100644 --- a/test/folding-toc.vader +++ b/test/folding-toc.vader @@ -96,6 +96,7 @@ Execute (fold text result): Execute (check TOC): :Toc + :lclose let res = getloclist(0) let elem = res[0] AssertEqual elem.lnum, 1