diff options
Diffstat (limited to 'src/ui/titlebar.c')
-rw-r--r-- | src/ui/titlebar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index 9c8adfe5..915faa6a 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -197,9 +197,10 @@ _title_bar_draw(void) char *title = win_get_title(current); mvwprintw(win, 0, 0, " %s", title); - free(title); pos = strlen(title) + 1; + free(title); + // presence is written from the right side // calculate it first so we have a maxposition maxrightpos = _show_self_presence(); |