aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-12 15:41:43 +0800
committerGitHub <noreply@github.com>2022-08-12 15:41:43 +0800
commit103f10d901423637a80a887a58949bc582b44cae (patch)
treeca18ae200e45b7a169152f19ebdc9adf46345c7b /scripts/vim-patch.sh
parentd4f5e0db3c61a316013cc17739f6e8abc1c5907b (diff)
downloadrneovim-103f10d901423637a80a887a58949bc582b44cae.tar.gz
rneovim-103f10d901423637a80a887a58949bc582b44cae.tar.bz2
rneovim-103f10d901423637a80a887a58949bc582b44cae.zip
refactor: move code dealing with script files to runtime.c (#19734)
vim-patch:8.1.1927: code for dealing with script files is spread out Problem: Code for dealing with script files is spread out. Solution: Move the code to scriptfile.c. (Yegappan Lakshmanan, closes vim/vim#4861) https://github.com/vim/vim/commit/307c5a5bb77c3728dfab06c30e9f786309c63f74
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 505a88c55c..ad1973603e 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -245,6 +245,10 @@ preprocess_patch() {
LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/profiler\(\.[ch]\)/\1\/profile\2/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"
+ # Rename scriptfile.c to runtime.c
+ LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/scriptfile\(\.[ch]\)/\1\/runtime\2/g' \
+ "$file" > "$file".tmp && mv "$file".tmp "$file"
+
# Rename session.c to ex_session.c
LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/session\(\.[ch]\)/\1\/ex_session\2/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"