diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-23 11:12:12 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-23 14:18:27 +0100 |
| commit | 0613073092b9f4172b5b87e9c7f243ff6d61f723 (patch) | |
| tree | 3ba8304237facd50a08ceac45eebe28903c9022e /view.h | |
| parent | 51e92f0c8e7b50c684287bea1a55edbde128053f (diff) | |
| download | vis-0613073092b9f4172b5b87e9c7f243ff6d61f723.tar.gz vis-0613073092b9f4172b5b87e9c7f243ff6d61f723.tar.xz | |
view: fix cell placement of combining characters
They now belong to the cell holding the corresponding regular
(i.e. non-combining) character. This also means that at least
in theory a cell could hold arbitrary amounts of data, in
practice it is limited to 16 bytes.
Diffstat (limited to 'view.h')
| -rw-r--r-- | view.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -23,8 +23,9 @@ typedef struct { character which use more than 1 column to display, their lenght is stored in the leftmost cell wheras all following cells occupied by the same character have a length of 0. */ - char data[8]; /* utf8 encoded character displayed in this cell might not be the - the same as in the underlying text, for example tabs get expanded */ + 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 istab; bool selected; /* whether this cell is part of a selected region */ |
