aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-30 14:41:34 +0800
committerGitHub <noreply@github.com>2023-09-30 14:41:34 +0800
commitdc6d0d2daf69e2fdadda81feb97906dbc962a239 (patch)
tree7cf93549ec3282e1f42baf89e97d7890daeb5d70 /scripts/vim-patch.sh
parentcf8b2c0e74fd5e723b0c15c2ce84e6900fd322d3 (diff)
downloadrneovim-dc6d0d2daf69e2fdadda81feb97906dbc962a239.tar.gz
rneovim-dc6d0d2daf69e2fdadda81feb97906dbc962a239.tar.bz2
rneovim-dc6d0d2daf69e2fdadda81feb97906dbc962a239.zip
refactor: reorganize option header files (#25437)
- Move vimoption_T to option.h - option_defs.h is for option-related types - option_vars.h corresponds to Vim's option.h - option_defs.h and option_vars.h don't include each other
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 8b061add0d..478415376a 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -288,6 +288,10 @@ preprocess_patch() {
LC_ALL=C sed -Ee 's/( [ab]\/src\/nvim)\/keymap\.h/\1\/keycodes.h/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"
+ # Rename option.h to option_vars.h
+ LC_ALL=C sed -Ee 's/( [ab]\/src\/nvim)\/option\.h/\1\/option_vars.h/g' \
+ "$file" > "$file".tmp && mv "$file".tmp "$file"
+
# Rename terminal.txt to nvim_terminal_emulator.txt
LC_ALL=C sed -Ee 's/( [ab]\/runtime\/doc)\/terminal\.txt/\1\/nvim_terminal_emulator.txt/g' \
"$file" > "$file".tmp && mv "$file".tmp "$file"