aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-06-07 14:12:19 +0200
committerMattias Andrée <m@maandree.se>2026-06-07 14:12:19 +0200
commitbe504cd0d62805663345dc4627769f74902521ac (patch)
tree6276f9e0d8aa857d6e3a2758bcfca776d5659fbf
parentFirst commit (diff)
downloadcmap-master.tar.gz
cmap-master.tar.bz2
cmap-master.tar.xz
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--LICENSE2
-rw-r--r--README2
-rw-r--r--cmap.c10
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 <m@maandree.se>
+© 2025, 2026 Mattias Andrée <m@maandree.se>
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;
}
}