From: Ciro Santilli Date: Sat, 21 Feb 2015 14:52:02 +0000 (+0100) Subject: Merge pull request #179 from cirosantilli/toc-nomodifiable-test2 X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/a0ef80e296de45f1a9ce5794bffb80fe79efc3ac?hp=eb89af96d9ae2f0c45cf252563a6046cdb77a7ad Merge pull request #179 from cirosantilli/toc-nomodifiable-test2 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