From 71fe4441ef8a7066d1a7279822d1fdacd51524f3 Mon Sep 17 00:00:00 2001 From: John Hood Date: Mon, 14 Nov 2016 23:34:16 -0500 Subject: [PATCH] Shrink Cell to its prior size by using bitfields. --- src/terminal/terminalframebuffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/terminal/terminalframebuffer.h b/src/terminal/terminalframebuffer.h index 1d98e50..c21c514 100644 --- a/src/terminal/terminalframebuffer.h +++ b/src/terminal/terminalframebuffer.h @@ -89,9 +89,9 @@ namespace Terminal { typedef std::string content_type; /* can be std::string, std::vector, or __gnu_cxx::__vstring */ content_type contents; Renditions renditions; - uint8_t width; - bool fallback; /* first character is combining character */ - bool wrap; + unsigned int width : 2; + unsigned int fallback : 1; /* first character is combining character */ + unsigned int wrap : 1; public: Cell( color_type background_color );