aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorRichard Burke <rich.g.burke@gmail.com>2016-02-17 23:42:45 +0000
committerRichard Burke <rich.g.burke@gmail.com>2016-02-17 23:42:45 +0000
commitefc9b14dcee610a494401abf483126c8d6dd9e0a (patch)
tree083da721b59dc656e64e37bca87968980b53809b /view.c
parentb388c3d7c37688f1ddb07a90a04643ec442b0512 (diff)
downloadvis-efc9b14dcee610a494401abf483126c8d6dd9e0a.tar.gz
vis-efc9b14dcee610a494401abf483126c8d6dd9e0a.tar.xz
Display NUL bytes correctly
Diffstat (limited to 'view.c')
-rw-r--r--view.c2
1 files changed, 1 insertions, 1 deletions
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];