summaryrefslogtreecommitdiff
path: root/src/testdir/test75.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-10-20 21:23:33 +0200
committerBram Moolenaar <Bram@vim.org>2010-10-20 21:23:33 +0200
commitbd743259603a5cda418a0c542b719dad0213e1a9 (patch)
treef61707a813b850930460aa0605c68037e31291c3 /src/testdir/test75.in
parent727c876b7869050d5da4f4d3dba975350bdbd7d8 (diff)
downloadvim-git-bd743259603a5cda418a0c542b719dad0213e1a9.tar.gz
updated for version 7.3.032v7.3.032
Problem: maparg() doesn't return the flags, such as <buffer>, <script>, <silent>. These are needed to save and restore a mapping. Solution: Improve maparg(). (also by Christian Brabandt)
Diffstat (limited to 'src/testdir/test75.in')
-rw-r--r--src/testdir/test75.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/test75.in b/src/testdir/test75.in
new file mode 100644
index 000000000..2de7a089b
--- /dev/null
+++ b/src/testdir/test75.in
@@ -0,0 +1,16 @@
+" Tests for functions.
+
+STARTTEST
+:so small.vim
+:" Test maparg() with a string result
+:map foo<C-V> is<F4>foo
+:vnoremap <script> <buffer> <expr> <silent> bar isbar
+:call append('$', maparg('foo<C-V>'))
+:call append('$', string(maparg('foo<C-V>', '', 0, 1)))
+:call append('$', string(maparg('bar', '', 0, 1)))
+:"
+:/^eof/+1,$w! test.out
+:qa!
+ENDTEST
+
+eof