From f52603b31a50a2e7159cc3229d36ec214c3064f0 Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 24 Jun 2011 13:28:25 +0200 Subject: Small refactoring --- main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index d030226..9c8cf14 100644 --- a/main.c +++ b/main.c @@ -144,9 +144,8 @@ void update_title() { } if (n >= TITLE_LEN) { - win_title[TITLE_LEN - 2] = '.'; - win_title[TITLE_LEN - 3] = '.'; - win_title[TITLE_LEN - 4] = '.'; + for (n = 0; n < 3; n++) + win_title[TITLE_LEN - n - 2] = '.'; } win_set_title(&win, win_title); -- cgit v1.2.3-54-g00ecf