diff options
| author | Richard Burke <rich.g.burke@gmail.com> | 2016-02-17 23:42:45 +0000 |
|---|---|---|
| committer | Richard Burke <rich.g.burke@gmail.com> | 2016-02-17 23:42:45 +0000 |
| commit | efc9b14dcee610a494401abf483126c8d6dd9e0a (patch) | |
| tree | 083da721b59dc656e64e37bca87968980b53809b /view.c | |
| parent | b388c3d7c37688f1ddb07a90a04643ec442b0512 (diff) | |
| download | vis-efc9b14dcee610a494401abf483126c8d6dd9e0a.tar.gz vis-efc9b14dcee610a494401abf483126c8d6dd9e0a.tar.xz | |
Display NUL bytes correctly
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |
