From 117bb80dd0299de8946aba61beb808084a71ebd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 7 Sep 2024 19:18:46 +0200 Subject: [PATCH] term: use 16-bit ints for cmd start/end columns Reduces the size of struct row even further, from 27 bytes to 23 bytes. --- terminal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminal.h b/terminal.h index 0d3792e2..f0c0a669 100644 --- a/terminal.h +++ b/terminal.h @@ -159,8 +159,8 @@ struct row { struct row_data *extra; struct { - int cmd_start; /* Column, -1 if unset */ - int cmd_end; /* Column, -1 if unset */ + int16_t cmd_start; /* Column, -1 if unset */ + int16_t cmd_end; /* Column, -1 if unset */ bool prompt_marker; } __attribute__((packed)) shell_integration;