From efc9b14dcee610a494401abf483126c8d6dd9e0a Mon Sep 17 00:00:00 2001 From: Richard Burke Date: Wed, 17 Feb 2016 23:42:45 +0000 Subject: Display NUL bytes correctly --- view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view.c') diff --git a/view.c b/view.c index 6cac448..d13a968 100644 --- a/view.c +++ b/view.c @@ -560,7 +560,7 @@ void view_draw(View *view) { continue; } else if (len == 0) { /* NUL byte encountered, store it and continue */ - cell = (Cell){ .data = "\x00", .len = 1, .width = 0 }; + cell = (Cell){ .data = "\x00", .len = 1, .width = 2 }; } else { for (size_t i = 0; i < len; i++) cell.data[i] = cur[i]; -- cgit v1.2.3