aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_maparg.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-04-01 18:45:38 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-04-13 12:00:33 -0400
commitd74a28d716d2d65fe5b92a6366145f1edbfbdf07 (patch)
treeb61f2f30fe6c10485738d36f6aaf5e60e8f68ca5 /src/nvim/testdir/test_maparg.vim
parent87334c00e0568226f0deeb6de90c759c8d1ec464 (diff)
downloadrneovim-d74a28d716d2d65fe5b92a6366145f1edbfbdf07.tar.gz
rneovim-d74a28d716d2d65fe5b92a6366145f1edbfbdf07.tar.bz2
rneovim-d74a28d716d2d65fe5b92a6366145f1edbfbdf07.zip
vim-patch:8.2.0134: some map functionality not covered by tests
Problem: Some map functionality not covered by tests. Solution: Add tests. (Yegappan Lakshmanan, closes vim/vim#5504) https://github.com/vim/vim/commit/8ba6bb7c94229f1e6f85ea5152ed8b4fbbbd9d20
Diffstat (limited to 'src/nvim/testdir/test_maparg.vim')
-rw-r--r--src/nvim/testdir/test_maparg.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_maparg.vim b/src/nvim/testdir/test_maparg.vim
index 0b941d51ec..5f73bd80ad 100644
--- a/src/nvim/testdir/test_maparg.vim
+++ b/src/nvim/testdir/test_maparg.vim
@@ -41,6 +41,11 @@ function Test_maparg()
map abc y<S-char-114>y
call assert_equal("yRy", maparg('abc'))
+ omap { w
+ let d = maparg('{', 'o', 0, 1)
+ call assert_equal(['{', 'w', 'o'], [d.lhs, d.rhs, d.mode])
+ ounmap {
+
map abc <Nop>
call assert_equal("<Nop>", maparg('abc'))
unmap abc
@@ -62,3 +67,5 @@ function Test_range_map()
execute "normal a\uf040\<Esc>"
call assert_equal("abcd", getline(1))
endfunction
+
+" vim: shiftwidth=2 sts=2 expandtab