aboutsummaryrefslogtreecommitdiff
path: root/view.h
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.h
parentb388c3d7c37688f1ddb07a90a04643ec442b0512 (diff)
downloadvis-efc9b14dcee610a494401abf483126c8d6dd9e0a.tar.gz
vis-efc9b14dcee610a494401abf483126c8d6dd9e0a.tar.xz
Display NUL bytes correctly
Diffstat (limited to 'view.h')
-rw-r--r--view.h8
1 files changed, 4 insertions, 4 deletions
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;