diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-29 16:47:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-29 16:47:29 +0800 |
commit | 0b79137c59fbe44bded76f123602e552dc6f7b03 (patch) | |
tree | 2d1792b209f4536dc593e3dd904ce57e7407e050 /scripts/vim-patch.sh | |
parent | 98695b49992daa2b40eb3d5b5e4a86e99c92ed0e (diff) | |
download | rneovim-0b79137c59fbe44bded76f123602e552dc6f7b03.tar.gz rneovim-0b79137c59fbe44bded76f123602e552dc6f7b03.tar.bz2 rneovim-0b79137c59fbe44bded76f123602e552dc6f7b03.zip |
vim-patch:8.1.2001: some source files are too big (#21231)
Problem: Some source files are too big.
Solution: Move buffer and window related functions to evalbuffer.c and
evalwindow.c. (Yegappan Lakshmanan, closes vim/vim#4898)
https://github.com/vim/vim/commit/261f346f8154c0ec7094a4a211c653c74e9f7c2e
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-x | scripts/vim-patch.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 0854c2f627..e676705560 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -242,6 +242,14 @@ preprocess_patch() { LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/userfunc\.c/\1\/eval\/userfunc\.c/g' \ "$file" > "$file".tmp && mv "$file".tmp "$file" + # Rename evalbuffer.c to eval/buffer.c + LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/evalbuffer\.c/\1\/eval\/buffer\.c/g' \ + "$file" > "$file".tmp && mv "$file".tmp "$file" + + # Rename evalwindow.c to eval/window.c + LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/evalwindow\.c/\1\/eval\/window\.c/g' \ + "$file" > "$file".tmp && mv "$file".tmp "$file" + # Rename map.c to mapping.c LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/map\(\.[ch]\)/\1\/mapping\2/g' \ "$file" > "$file".tmp && mv "$file".tmp "$file" |