Merge #41316 from janlazo/na-patch-tcd

build(vim-patch): detect more n/a patches for popupwin and terminal
This commit is contained in:
Justin M. Keyes
2026-08-15 07:22:16 -04:00
committed by GitHub
2 changed files with 15 additions and 3 deletions

View File

@@ -930,9 +930,13 @@ is_na_patch() {
runtime/doc/*.txt | runtime/pack/dist/opt/*/doc/*.txt)
HUNKS=$(git -c core.attributesfile="$NVIM_SOURCE_DIR"/.gitattributes -c 'diff.helphelp.xfuncname=^.*\*[^*]+\*$' -C "${VIM_SOURCE_DIR}" \
diff-tree --no-commit-id -r -b -U0 \
'-I^\s+$' \
'-I^=+$' \
'-I^popup_[_a-z]+\(' \
'-I\*\s+For Vim version [0-9]\.[0-9]\.\s+Last change: [0-9]+ [A-Z][a-z]+ [0-9]+' \
'-I compiled \(with\|without\) .*(\|.*\|) feature\.$' \
'-I^=+$' \
'-I|popup-windows|' \
'-I\spopup window\s' \
"$patch" -- "${file}" |
grep -v -e '{.\+ \(available\|compiled\) \(with\|without\) .\+}' |
grep -Pzo '(?<=\n)@@ -[0-9][^@\n]+\+[0-9][^@\n]* @@[^@\n]*\n(?=([-+][^\n]*\n)+(@|$))' |
@@ -958,10 +962,12 @@ is_na_patch() {
HUNKS=$(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id -r -b -U0 \
'-I^\s+$' \
'-I^\s*/?\*/?$' \
'-I^\s*(//|/?\*).*\s([vV]im9|channel|job|popup|sound)' \
'-I^\s*(//|/?\*).*\s([vV]im9|channel|job|popup|sound|terminal)' \
'-I^#\s*((ifdef|ifndef|undef)|(if|elif)\s.*defined\().*FEAT_' \
'-I^#\s*(else|endif)' \
'-I^#\s*define\s+(FEAT|POPUPWIN|XDG)_' \
'-IEVENT_TERMINALWINOPEN' \
'-I^#\s*define\s+POPF_CURSORLINE\s' \
'-I^typedef enum \{$' \
'-I^\s+POPCLOSE_[A-Z]+,?$' \
'-I^\} popclose_T;$' \
@@ -998,17 +1004,21 @@ is_na_patch() {
HUNKS=$(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id -r -b -U0 \
'-I^\s+$' \
'-I^\s*/?\*/?$' \
'-I^\s*(//|/?\*).*\s([vV]im9|sound)' \
'-I^\s*(//|/?\*).*\s([vV]im9|channel|job|popup|sound|terminal)' \
'-I^#\s*((ifdef|ifndef|undef)|(if|elif)\s.*defined\().*FEAT_' \
'-I^#\s*(else|endif)' \
'-I^#\s*define\s+(FEAT|POPUPWIN|XDG)_' \
'-IEVENT_TERMINALWINOPEN' \
'-I^#\s*include\s+<proto/' \
'-I^\s+\{"(popup|prop|sound)_[_a-z]+",.*f_(popup|prop|sound)_[_a-z]+},$' \
'-I^\s*(static)?\svoid$' \
'-I^static\svoid\s.+\(.+\);$' \
'-I#\s*define.*ex_ni$' \
'-I[_.>]sc_version = ' \
'-I[_.>]uf_script_ctx_version = ' \
'-I = skip_type\(.+\);$' \
'-Icheck_typval_type\(.+\)' \
'-I\spopup_set_firstline\(.+\);' \
'-I\svim_free\(.*w_popup_title\);' \
"$patch" -- "${file}" |
grep '^@@ .* @@')

View File

@@ -88,6 +88,8 @@
\*:shell\*
\*:smile\*
\*:version\*
\*DirChanged\*
\*DirChangedPre\*
\*E984\*
\*E999\*
\*HelpToc-mappings\*