:/
Date: 2013-02-25 12:54:15 +0100
vistree(): tweak: do not disrupt multibyte chars
---
tree.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tree.c b/tree.c
index 539b57d..258e36f 100644
--- a/tree.c
+++ b/tree.c
@@ -749,8 +749,9 @@ vistree(char *dst, size_t sz, struct op *t)
/*
* When the job is a simple command then try to display as much of the
* executable as possible, otherwise hard cut after sz bytes.
+ * To not disrupt multibyte characters we can only do so in UTFMODE
*/
- if (t->type == TCOM) {
+ if (UTFMODE && t->type == TCOM) {
is_com = true;
buf = NULL;
} else {