aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Malcomson <hardenedapple@gmail.com>2018-01-24 13:09:22 +0000
committerMatthew Malcomson <hardenedapple@gmail.com>2018-03-14 10:39:14 +0000
commitd989051220a5137e7490ca5020225da109e0af0b (patch)
treec66678499e69c107606ebe9420425303593c4bc8
parente01f35c4bb95ce81eebdba8c8b53d73964508e73 (diff)
downloadrneovim-d989051220a5137e7490ca5020225da109e0af0b.tar.gz
rneovim-d989051220a5137e7490ca5020225da109e0af0b.tar.bz2
rneovim-d989051220a5137e7490ca5020225da109e0af0b.zip
Split :lnoremap test into done and pending
There is some behaviour that we keep with the recent changes, and some behaviour that we change. Instetad of having one failing test covering all behaviour, we split the test into two.
-rw-r--r--test/functional/options/keymap_spec.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/options/keymap_spec.lua b/test/functional/options/keymap_spec.lua
index ff78348517..e1424cb8fe 100644
--- a/test/functional/options/keymap_spec.lua
+++ b/test/functional/options/keymap_spec.lua
@@ -181,6 +181,16 @@ describe("'keymap' / :lmap", function()
command('lmapclear')
command('lnoremap l a')
command('imap a x')
+ feed('il<esc>')
+ expect('alllaaa')
+ end)
+ -- This is a problem introduced when introducting :lmap and macro
+ -- compatibility. There are no plans to fix this as the complexity involved
+ -- seems too great.
+ pending('mappings not applied to macro replay of :lnoremap', function()
+ command('lmapclear')
+ command('lnoremap l a')
+ command('imap a x')
feed('qail<esc>q')
expect('alllaaa')
feed('@a')