aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-12 12:58:52 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-12 13:44:37 +0800
commitc7ca94ba7f7a76caf51ed62b521f04c97c6aeed5 (patch)
tree88e227c21201ed7ae438a3b011d673ce8e74d7ea /scripts/vim-patch.sh
parent0d9e09bf670724caec9939a7165e25c4abc40291 (diff)
downloadrneovim-c7ca94ba7f7a76caf51ed62b521f04c97c6aeed5.tar.gz
rneovim-c7ca94ba7f7a76caf51ed62b521f04c97c6aeed5.tar.bz2
rneovim-c7ca94ba7f7a76caf51ed62b521f04c97c6aeed5.zip
vim-patch:8.1.1684: profiling functionality is spread out
Problem: Profiling functionality is spread out. Solution: Put profiling functionality in profiling.c. (Yegappan Lakshmanan, closes vim/vim#4666) https://github.com/vim/vim/commit/fa55cfc69d2b14761e2a8bd85bc1e0d82df770aa Move proftime_T to types.h for now to avoid recursive #include.
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 3825d9f0ea..505a88c55c 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -241,6 +241,10 @@ preprocess_patch() {
LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/map\(\.[ch]\)/\1\/mapping\2/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"
+ # Rename profiler.c to profile.c
+ LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/profiler\(\.[ch]\)/\1\/profile\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"