aboutsummaryrefslogtreecommitdiff
path: root/scripts/update_terminfo.sh
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2022-05-16 01:45:34 +0200
committerGitHub <noreply@github.com>2022-05-16 01:45:34 +0200
commitb2799518c7b7f93001e23016c0b8e5a3096afac0 (patch)
tree2cc7335f73b209f30ae3ed5d30a7d401e64b3ed7 /scripts/update_terminfo.sh
parentf8af81445bb48966d54f4a956842d935d009d275 (diff)
downloadrneovim-b2799518c7b7f93001e23016c0b8e5a3096afac0.tar.gz
rneovim-b2799518c7b7f93001e23016c0b8e5a3096afac0.tar.bz2
rneovim-b2799518c7b7f93001e23016c0b8e5a3096afac0.zip
feat(terminfo): bump built-in terminfo entries (#18570)
Removes NOLINT, which is pointless for the generated terminfo_defs.h. Adds `uncrustify:off`, so it is not uncrustify which complains about the same things (too long lines, no space after comma) instead.
Diffstat (limited to 'scripts/update_terminfo.sh')
-rwxr-xr-xscripts/update_terminfo.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/update_terminfo.sh b/scripts/update_terminfo.sh
index 0cfc230ca6..8a0937cc8c 100755
--- a/scripts/update_terminfo.sh
+++ b/scripts/update_terminfo.sh
@@ -64,6 +64,8 @@ cat > "$target" <<EOF
// This is an open source non-commercial project. Dear PVS-Studio, please check
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
+// uncrustify:off
+
//
// Generated by scripts/update_terminfo.sh and $(tic -V)
//
@@ -84,8 +86,8 @@ for term in $sorted_terms; do
infocmp -L -1 -A "$db" "$term" | sed -e '1d' -e 's#^#// #' | tr '\t' ' '
printf 'static const int8_t %s[] = {\n' "${entries[$term]}"
printf ' '
- od -v -t d1 < "$path" | cut -c9- | xargs | tr ' ' ',' | tr -d '\n'
- printf ' // NOLINT\n};\n'
+ od -v -t d1 < "$path" | cut -c9- | xargs | tr ' ' ','
+ printf '};\n'
done >> "$target"
cat >> "$target" <<EOF