diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-10 15:57:46 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-01-11 12:02:25 +0100 |
commit | a5db139a0a671e1f7422d6cd387f4bc8d0afb8e7 (patch) | |
tree | b8060e0b189b7cd045d7a135c2e17593bb1fb34c /RichString.c | |
parent | 8a67d7f0866bf9451aad301e98059daa5c18e7c3 (diff) |
Linux: use correct column alignment for wide fields
This affects:
- PROC_COMM, PROC_EXE and CWD on Linux
- JAIL on FreeBSD and DragonFlyBSD
- ZONE on Solaris
Diffstat (limited to 'RichString.c')
-rw-r--r-- | RichString.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/RichString.c b/RichString.c index 9b69e98c..01305806 100644 --- a/RichString.c +++ b/RichString.c @@ -60,7 +60,7 @@ static inline int RichString_writeFromWide(RichString* this, int attrs, const ch this->chptr[i] = (CharType) { .attr = attrs & 0xffffff, .chars = { (iswprint(data[j]) ? data[j] : '?') } }; } - return len; + return wcswidth(data, len); } static inline int RichString_writeFromAscii(RichString* this, int attrs, const char* data, int from, int len) { |