From d3ec525b7d6ecd8de064d3f3a54d112769d1d3b3 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 11 Oct 2025 14:19:39 -0400 Subject: Add unicode support to justify --- include/linebuffer.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/linebuffer.h') diff --git a/include/linebuffer.h b/include/linebuffer.h index a3d9e4c..b11cb8f 100644 --- a/include/linebuffer.h +++ b/include/linebuffer.h @@ -6,9 +6,11 @@ #include typedef struct { - size_t _num_words; - size_t _buffer_length; - size_t _buffer_capacity; + size_t _num_words; // Number of words in the buffer + size_t _line_width; // Max display width (e.g., 72 columns) + size_t _buffer_length; // Current bytes used + size_t _display_width; // Current display width + size_t _buffer_capacity; // Byte capacity (line_width * 4 for UTF-8) char *_buffer; } LineBuffer; -- cgit v1.2.3