diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d469281..a23cb8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,13 +114,13 @@ jobs: c_format: name: C format - runs-on: ubuntu-22.04 + runs-on: ubuntu-26.04 steps: - run: uname -rms - run: echo "cloning ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" - run: git clone --no-checkout -- ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} wd - run: cd wd && git fetch -- origin ${{ github.event.pull_request.head.sha }} && git checkout FETCH_HEAD - - run: cd wd && git ls-files -z '**/*.c' '**/*.h' | xargs -0 -- clang-format-15 --dry-run --style=file --Werror + - run: cd wd && git ls-files -z '**/*.c' '**/*.h' | xargs -0 -- clang-format-22 --dry-run --style=file --Werror c_analysis: name: C analysis diff --git a/libvimcat/src/term.c b/libvimcat/src/term.c index 1257554..d37485b 100644 --- a/libvimcat/src/term.c +++ b/libvimcat/src/term.c @@ -628,8 +628,7 @@ static int process_csi(term_t *t, const char *csi) { #endif // check we have a known CSI - int (*handler)(term_t * t, size_t index, bool is_default, size_t entry) = - NULL; + int (*handler)(term_t *t, size_t index, bool is_default, size_t entry) = NULL; switch (final) { case 'A': // Cursor Up handler = process_A;