mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
Merge pull request #20828 from zeertzjq/vim-patch-null
build(vim-patch.sh): handle added/removed files properly
This commit is contained in:
@@ -315,12 +315,11 @@ uncrustify_patch() {
|
|||||||
# than once. This is obviously a bug that needs to be fixed on uncrustify's
|
# than once. This is obviously a bug that needs to be fixed on uncrustify's
|
||||||
# end, but in the meantime this workaround is sufficient.
|
# end, but in the meantime this workaround is sufficient.
|
||||||
for _ in {1..2}; do
|
for _ in {1..2}; do
|
||||||
uncrustify -c "$NVIM_SOURCE_DIR"/src/uncrustify.cfg -q --replace --no-backup "$patch_path"/{before,after}/*.[ch]
|
uncrustify -c "$NVIM_SOURCE_DIR"/src/uncrustify.cfg -q --replace --no-backup "$patch_path"/{before,after}/*.[ch]
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
local basename
|
for file in "${changed_files[@]}"; do
|
||||||
basename=$(basename "$file")
|
local basename
|
||||||
basename=$(basename "$file")
|
basename=$(basename "$file")
|
||||||
local before=$patch_path/before/$basename
|
local before=$patch_path/before/$basename
|
||||||
local after=$patch_path/after/$basename
|
local after=$patch_path/after/$basename
|
||||||
|
Reference in New Issue
Block a user