From 6b24f3c3998a66b0e5baa4de89ed66f2b8688404 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Fri, 22 Jul 2011 12:08:35 +0300 Subject: apk: improve indented printing * fixup the help messages to align up properly * refresh screen width on SIGWINCH --- src/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index fc7ecb5..3889162 100644 --- a/src/state.c +++ b/src/state.c @@ -723,7 +723,7 @@ static void apk_count_change(struct apk_change *change, struct apk_stats *stats) static void apk_draw_progress(int percent) { - const int bar_width = (apk_screen_width - 7); + const int bar_width = apk_get_screen_width() - 7; int i; fprintf(stderr, "\e7%3i%% [", percent); -- cgit v1.2.3-60-g2f50