aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-22 21:14:17 +0800
committerGitHub <noreply@github.com>2022-07-22 21:14:17 +0800
commit9d4a4f49ef74f3c14df63e3d32a20830bfa8c7a9 (patch)
treefc9230c16f065015fe7efd2f7523a002d2038a06 /scripts/vim-patch.sh
parentbb7853a62dc32baafa7416b94c97f985287f39e2 (diff)
downloadrneovim-9d4a4f49ef74f3c14df63e3d32a20830bfa8c7a9.tar.gz
rneovim-9d4a4f49ef74f3c14df63e3d32a20830bfa8c7a9.tar.bz2
rneovim-9d4a4f49ef74f3c14df63e3d32a20830bfa8c7a9.zip
vim-patch:8.1.1933: the eval.c file is too big (#19462)
Problem: The eval.c file is too big. Solution: Move code related to variables to evalvars.c. (Yegappan Lakshmanan, closes vim/vim#4868) https://github.com/vim/vim/commit/0522ba0359c96a8c2a4fc8fca0d3b58e49dda759 Name the new file eval/vars.c instead.
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index d5424f51ab..f1bc07c249 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -229,6 +229,10 @@ preprocess_patch() {
LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/evalfunc\.c/\1\/eval\/funcs\.c/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"
+ # Rename evalvars.c to eval/vars.c
+ LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/evalfunc\.c/\1\/eval\/vars\.c/g' \
+ "$file" > "$file".tmp && mv "$file".tmp "$file"
+
# Rename userfunc.c to eval/userfunc.c
LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/userfunc\.c/\1\/eval\/userfunc\.c/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"