mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -04:00
main: include +/-wcwidth in version output
* +wcwidth: use our own, builtin, wcwidth() * -wcwidth: use system’s wcwidth()
This commit is contained in:
parent
97ade97d38
commit
402972085a
2 changed files with 12 additions and 2 deletions
5
main.c
5
main.c
|
|
@ -45,12 +45,13 @@ static const char *
|
|||
version_and_features(void)
|
||||
{
|
||||
static char buf[256];
|
||||
snprintf(buf, sizeof(buf), "version: %s %cpgo %cime %cgraphemes %cassertions",
|
||||
snprintf(buf, sizeof(buf), "version: %s %cpgo %cime %cgraphemes %cassertions %cwcwidth",
|
||||
FOOT_VERSION,
|
||||
feature_pgo() ? '+' : '-',
|
||||
feature_ime() ? '+' : '-',
|
||||
feature_graphemes() ? '+' : '-',
|
||||
feature_assertions() ? '+' : '-');
|
||||
feature_assertions() ? '+' : '-',
|
||||
feature_builtin_wcwidth() ? '+' : '-');
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue