aboutsummaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-12 20:19:29 +0800
committerGitHub <noreply@github.com>2022-05-12 20:19:29 +0800
commit3a91adabda43376638e0edc80f54181258c98dea (patch)
tree7863a14dc1113b0304cd74e44f414de8533f9217 /test/unit
parenta2d4b862f16ed9814ce45a865a3596c958e066af (diff)
downloadrneovim-3a91adabda43376638e0edc80f54181258c98dea.tar.gz
rneovim-3a91adabda43376638e0edc80f54181258c98dea.tar.bz2
rneovim-3a91adabda43376638e0edc80f54181258c98dea.zip
refactor: rename keymap.{c,h} to keycodes.{c,h} (#18535)
Most code in keymap.h is for keycode definitions, while most code in keymap.c is for the parsing and conversion of keycodes. The name "keymap" may also make people think these two files are for mappings, while in fact keycodes are used even when no mappings are involved, so "keycodes" should be a better file name than "keymap".
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/keycodes_spec.lua (renamed from test/unit/keymap_spec.lua)4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/keymap_spec.lua b/test/unit/keycodes_spec.lua
index 1f1f32bb9e..5bf27c9232 100644
--- a/test/unit/keymap_spec.lua
+++ b/test/unit/keycodes_spec.lua
@@ -5,10 +5,10 @@ local ffi = helpers.ffi
local eq = helpers.eq
local neq = helpers.neq
-local keymap = helpers.cimport('./src/nvim/keymap.h')
+local keymap = helpers.cimport('./src/nvim/keycodes.h')
local NULL = helpers.NULL
-describe('keymap.c', function()
+describe('keycodes.c', function()
describe('find_special_key()', function()
local srcp = ffi.new('const unsigned char *[1]')