summaryrefslogtreecommitdiff
path: root/src/fruits/cmsrv
diff options
context:
space:
mode:
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.