From 393e5a926cd105c4a2f902824a233cc41af91198 Mon Sep 17 00:00:00 2001 From: dam Date: Sun, 22 Jan 2023 02:25:56 +0000 Subject: Fix multi-byte characters on task name causing empty spaces at the end of the column. --- ttt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ttt.c') diff --git a/ttt.c b/ttt.c index 8b8a1ca..de3c690 100644 --- a/ttt.c +++ b/ttt.c @@ -1095,6 +1095,8 @@ void draw_tui(database_st *db, layout_st *layout) { // Task title. x++; column_width = layout->columns[L_TITLE_IDX].width; + // Make sure multi-byte characters don't introduce empty spaces. + mvprintw(y, x, "%*s", column_width, ""); mvprintw(y, x, "%-*.*s", column_width, column_width, task->name); x += column_width; -- cgit v1.2.3