]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge pull request #179 from cirosantilli/toc-nomodifiable-test2
authorCiro Santilli <ciro.santilli@gmail.com>
Sat, 21 Feb 2015 14:52:02 +0000 (15:52 +0100)
committerCiro Santilli <ciro.santilli@gmail.com>
Sat, 21 Feb 2015 14:52:02 +0000 (15:52 +0100)
Add test for Toc nomodifiable #170

test/map.vader

index 0153269e7d91e543e5589fc22b8d7763f6621788..6cf0cee790caeb775d31a84c382122fb22cdcbea 100644 (file)
@@ -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