From 0613073092b9f4172b5b87e9c7f243ff6d61f723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 23 Nov 2015 11:12:12 +0100 Subject: 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. --- view.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'view.h') diff --git a/view.h b/view.h index d43deb4..d650ec6 100644 --- a/view.h +++ b/view.h @@ -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 */ -- cgit v1.2.3