summaryrefslogtreecommitdiff
path: root/src/fruits/cmsrv
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-03-18 10:56:12 -0400
committerAndrew Opalach <andrew@akon.city> 2025-03-18 10:56:12 -0400
commit191d98d306d48ba36d5a5a2eb3583b805a03b2c3 (patch)
tree3c917adaf66e6d348046beee510a9a1ed1dc1a41 /src/fruits/cmsrv
parentf0accac221a53633380f15b4953ca4f4fdfbeca7 (diff)
downloadcamu-191d98d306d48ba36d5a5a2eb3583b805a03b2c3.tar.gz
camu-191d98d306d48ba36d5a5a2eb3583b805a03b2c3.tar.bz2
camu-191d98d306d48ba36d5a5a2eb3583b805a03b2c3.zip
Cleanup
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/fruits/cmsrv')
-rw-r--r--src/fruits/cmsrv/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fruits/cmsrv/ui.c b/src/fruits/cmsrv/ui.c
index 9059632..dced71d 100644
--- a/src/fruits/cmsrv/ui.c
+++ b/src/fruits/cmsrv/ui.c
@@ -83,7 +83,7 @@ static void render_log(struct cmsrv_ui *ui)
u32 max_height = ncplane_dim_y(n) - 2;
u32 size = ui->log.messages.count;
- u32 index = size > max_height ? size - max_height : 0;
+ u32 index = (size > max_height) ? size - max_height : 0;
for (u32 i = index; i < size; i++) {
// We can't use putnstr here to control the width because lots of
// these messages will have wide characters.