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.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view.h') diff --git a/view.h b/view.h index 05ada2f..f8b6473 100644 --- a/view.h +++ b/view.h @@ -17,17 +17,17 @@ typedef struct Cursor Cursor; typedef struct Selection Selection; typedef struct { - int width; /* display width i.e. number of columns ocupied by this character */ + int width; /* display width i.e. number of columns occupied by this character */ size_t len; /* number of bytes the character displayed in this cell uses, for - character which use more than 1 column to display, their lenght - is stored in the leftmost cell wheras all following cells + characters which use more than 1 column to display, their length + is stored in the leftmost cell whereas all following cells occupied by the same character have a length of 0. */ char data[16]; /* utf8 encoded character displayed in this cell (might be more than one Unicode codepoint. might also not be the same as in the underlying text, for example tabs get expanded */ unsigned int attr; bool selected; /* whether this cell is part of a selected region */ - bool cursor; /* whether a cursor is currently locaated on the cell */ + bool cursor; /* whether a cursor is currently located on the cell */ } Cell; typedef struct Line Line; -- cgit v1.2.3