diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-12 15:41:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 15:41:43 +0800 |
commit | 103f10d901423637a80a887a58949bc582b44cae (patch) | |
tree | ca18ae200e45b7a169152f19ebdc9adf46345c7b /scripts/vim-patch.sh | |
parent | d4f5e0db3c61a316013cc17739f6e8abc1c5907b (diff) | |
download | rneovim-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-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 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" |