diff options
author | nicm <nicm> | 2019-07-06 20:37:29 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-07-06 20:37:29 +0000 |
commit | 3635b3cd6c3343b2ec3f7173facef8a284e7e613 (patch) | |
tree | 773c43e81053193348309a242156d8e699a83aaf /tmux.h | |
parent | 55c694a4679ee225b1962db63671422f3e641fc6 (diff) | |
download | rtmux-3635b3cd6c3343b2ec3f7173facef8a284e7e613.tar.gz rtmux-3635b3cd6c3343b2ec3f7173facef8a284e7e613.tar.bz2 rtmux-3635b3cd6c3343b2ec3f7173facef8a284e7e613.zip |
Correctly clear underscore colour in grid_get_cell1, also fix struct
grid_cell to avoid padding. Fixes increased memory use reported by Suraj
N Kurapati.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -596,13 +596,13 @@ enum utf8_state { /* Grid cell data. */ struct grid_cell { - u_char flags; + struct utf8_data data; /* 21 bytes */ u_short attr; + u_char flags; int fg; int bg; int us; - struct utf8_data data; -}; +} __packed; struct grid_cell_entry { u_char flags; union { |