diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-06 08:59:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 08:59:50 +0800 |
commit | 5581a90e20777a2493ca9835b11a67435287d64e (patch) | |
tree | 3a881ec6464e540ecae18e7092fa21438018b92b /test/functional/api/keymap_spec.lua | |
parent | 08ae0c840b31b1ef9ed56c0f9d2f96585b474538 (diff) | |
download | rneovim-5581a90e20777a2493ca9835b11a67435287d64e.tar.gz rneovim-5581a90e20777a2493ca9835b11a67435287d64e.tar.bz2 rneovim-5581a90e20777a2493ca9835b11a67435287d64e.zip |
test: reduce sleep for file timestamp change (#28196)
Now that Nvim always supports nanotime, sleeping for some milliseconds
is enough.
Diffstat (limited to 'test/functional/api/keymap_spec.lua')
-rw-r--r-- | test/functional/api/keymap_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/api/keymap_spec.lua b/test/functional/api/keymap_spec.lua index 0decd710e9..4380e76486 100644 --- a/test/functional/api/keymap_spec.lua +++ b/test/functional/api/keymap_spec.lua @@ -738,7 +738,7 @@ describe('nvim_set_keymap, nvim_del_keymap', function() end end - it('can set mappings containing literal keycodes', function() + it('can set mappings containing C0 control codes', function() api.nvim_set_keymap('n', '\n\r\n', 'rhs', {}) local expected = generate_mapargs('n', '<NL><CR><NL>', 'rhs') eq(expected, get_mapargs('n', '<NL><CR><NL>')) |