term: use 16-bit ints for cmd start/end columns

Reduces the size of struct row even further, from 27 bytes to 23
bytes.
This commit is contained in:
Daniel Eklöf 2024-09-07 19:18:46 +02:00
parent deba63fcff
commit 117bb80dd0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;