summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-16 09:13:25 -0300
committerAndrés <andmarti@gmail.com>2021-03-16 09:13:25 -0300
commite5788aadcc67b2e9f409337bb2e743bb9f49682c (patch)
treeb2ede4bf0d54521c8178fe445f72d8a4fc3d8df8
parenteb3843a9b04168a5f0f0d0d6cbd13ac76dde264c (diff)
Fix when showing both numbers and text on a same cell when using engformat
-rw-r--r--src/tui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tui.c b/src/tui.c
index 69b5f9c..155f33e 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -1182,6 +1182,7 @@ int ui_get_formated_value(struct ent ** p, int col, char * value) {
} else { // there is no format
// FIXME: error with number and text in same cell and no overlap
engformat(realfmt[col], fwidth[col], precision[col], (*p)->v, value, sizeof(char) * FBUFLEN);
+ ltrim(value, ' ');
return 1;
}
}