unicode-combine: simplify - remove -Dunicode-precompose option

Since the pre-composing functionality is now part of fcft, it makes
little sense to have a compile time option - there's no size benefit
to be had.

Furthermore, virtually all terminal emulators do
pre-composing (alacritty being an exception), this really isn't that
controversial.
This commit is contained in:
Daniel Eklöf 2020-05-10 17:10:33 +02:00
parent 77e256763c
commit 00df12f1a3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 7 additions and 44 deletions

2
vt.c
View file

@ -595,7 +595,6 @@ action_utf8_print(struct terminal *term, uint8_t c)
term->grid->cursor.point.col = base_col;
term->grid->cursor.lcf = false;
#if FOOT_UNICODE_PRECOMPOSE
if (composed == NULL) {
bool base_from_primary;
bool comb_from_primary;
@ -627,7 +626,6 @@ action_utf8_print(struct terminal *term, uint8_t c)
return;
}
}
#endif
size_t wanted_count = composed != NULL ? composed->count + 1 : 1;
if (wanted_count > ALEN(composed->combining)) {