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.h | |
| parent | b388c3d7c37688f1ddb07a90a04643ec442b0512 (diff) | |
| download | vis-efc9b14dcee610a494401abf483126c8d6dd9e0a.tar.gz vis-efc9b14dcee610a494401abf483126c8d6dd9e0a.tar.xz | |
Display NUL bytes correctly
Diffstat (limited to 'view.h')
| -rw-r--r-- | view.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |
