]> 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:

Add test for Toc nomodifiable #170
authorCiro Santilli <csa@quartetfs.com>
Sat, 21 Feb 2015 10:22:22 +0000 (11:22 +0100)
committerCiro Santilli <csa@quartetfs.com>
Sat, 21 Feb 2015 10:56:56 +0000 (11:56 +0100)
test/map.vader

index 0153269e7d91e543e5589fc22b8d7763f6621788..6cf0cee790caeb775d31a84c382122fb22cdcbea 100644 (file)
@@ -60,3 +60,16 @@ Execute (]c):
   AssertEqual line('.'), 3
   normal ]c
   AssertEqual line('.'), 1
   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