aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index 3f5d5a4..89155c8 100644
--- a/src/util.c
+++ b/src/util.c
@@ -48,11 +48,11 @@ util_print_info(WINDOW *window,
48 const char *info) 48 const char *info)
49{ 49{
50 const int x = getmaxx(window) - strlen(info) - 1; 50 const int x = getmaxx(window) - strlen(info) - 1;
51 const int y = getcury(window);
51 52
52 if (x < UTIL_LOGO_COLS) 53 if ((x + (y - 2) / 2 < UTIL_LOGO_COLS - 7) ||
54 ((y < 4) && (x < UTIL_LOGO_COLS)))
53 return; 55 return;
54
55 const int y = getcury(window);
56 56
57 wmove(window, y, x); 57 wmove(window, y, x);
58 wprintw(window, "%s", info); 58 wprintw(window, "%s", info);