summaryrefslogtreecommitdiffstats
path: root/src/ui-todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui-todo.c')
-rw-r--r--src/ui-todo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui-todo.c b/src/ui-todo.c
index d034881..baecff8 100644
--- a/src/ui-todo.c
+++ b/src/ui-todo.c
@@ -227,9 +227,9 @@ display_todo_item(int incolor, char *msg, int prio, int note, int width, int y,
if (incolor == 0)
custom_apply_attr(w, ATTR_HIGHEST);
- if (utf8_strwidth(msg) < width)
+ if (utf8_strwidth(msg) < width) {
mvwprintw(w, y, x, "%s%c %s", priostr, ch_note, msg);
- else {
+ } else {
for (i = 0; msg[i] && width > 0; i++) {
if (!UTF8_ISCONT(msg[i]))
width -= utf8_width(&msg[i]);