diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-12 20:19:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 20:19:29 +0800 |
commit | 3a91adabda43376638e0edc80f54181258c98dea (patch) | |
tree | 7863a14dc1113b0304cd74e44f414de8533f9217 /scripts/vim-patch.sh | |
parent | a2d4b862f16ed9814ce45a865a3596c958e066af (diff) | |
download | rneovim-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 'scripts/vim-patch.sh')
-rwxr-xr-x | scripts/vim-patch.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 57f51d9d46..e7e8f0b274 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -239,6 +239,10 @@ preprocess_patch() { LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/highlight\(\.[ch]\)/\1\/highlight_group\2/g' \ "$file" > "$file".tmp && mv "$file".tmp "$file" + # Rename keymap.h to keycodes.h + LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/keymap\.h/\1\/keycodes.h/g' \ + "$file" > "$file".tmp && mv "$file".tmp "$file" + # Rename test_urls.vim to check_urls.vim LC_ALL=C sed -e 's@\( [ab]\)/runtime/doc/test\(_urls\.vim\)@\1/scripts/check\2@g' \ "$file" > "$file".tmp && mv "$file".tmp "$file" |