From be504cd0d62805663345dc4627769f74902521ac Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 7 Jun 2026 14:12:19 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- LICENSE | 2 +- README | 2 +- cmap.c | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index 0e6be1c..6c7f02b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ ISC License -© 2025 Mattias Andrée +© 2025, 2026 Mattias Andrée Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/README b/README index ea051ab..e93ab36 100644 --- a/README +++ b/README @@ -43,4 +43,4 @@ OPERANDS No operands are supported. SEE ALSO - gcmap(3) + gcmap(1) diff --git a/cmap.c b/cmap.c index 66ac2fd..c1eb23a 100644 --- a/cmap.c +++ b/cmap.c @@ -167,10 +167,10 @@ maybe_sat_parse_int_as_uint(const char *s, unsigned int *out, int *setp) *setp = 1; for (; isdigit(*s); s++) { digit = (unsigned int)(*s & 15); - if (*out > ((unsigned int)INT_MAX - digit) / 10U) + if (*out > ((unsigned int)INT_MAX - digit) / 10u) *out = (unsigned int)INT_MAX; else - *out = *out * 10U + digit; + *out = *out * 10u + digit; } return s; } @@ -245,13 +245,13 @@ handle_keyboard_input(union libterminput_input *input) if (input->keypress.key == LIBTERMINPUT_LEFT) { automatic_left_pane_width = 0; if (left_pane_width) { - left_pane_width -= 1U; + left_pane_width -= 1u; goto redraw; } } else if (input->keypress.key == LIBTERMINPUT_RIGHT) { automatic_left_pane_width = 0; - if (term_width && left_pane_width < term_width - 1U) { - left_pane_width += 1U; + if (term_width && left_pane_width < term_width - 1u) { + left_pane_width += 1u; goto redraw; } } -- cgit v1.3.1