From: Ciro Santilli Date: Sat, 21 Feb 2015 10:22:22 +0000 (+0100) Subject: Add test for Toc nomodifiable #170 X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/dce291ccd0397c8dec8a5e980c5e206168dab508?hp=1462465bc2830e20f4644870a99fc626719bfcdb Add test for Toc nomodifiable #170 --- diff --git a/test/map.vader b/test/map.vader index 0153269..6cf0cee 100644 --- a/test/map.vader +++ b/test/map.vader @@ -60,3 +60,16 @@ Execute (]c): AssertEqual line('.'), 3 normal ]c AssertEqual line('.'), 1 + +Given mkd; +# a + +Execute (Toc does not set nomodifiable on other files): + " Sanity check. + Assert &modifiable + + :Toc + :lclose + :edit a + + Assert &modifiable