summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-06-24 13:28:25 +0200
committerBert <ber.t@gmx.com>2011-06-24 13:28:25 +0200
commitf52603b31a50a2e7159cc3229d36ec214c3064f0 (patch)
tree89d3d20344107036b12d727d7cee5e4f2f453719 /main.c
parent03009f59fc12902a7f21c6661a8260bf9ae1506b (diff)
downloadnsxiv-f52603b31a50a2e7159cc3229d36ec214c3064f0.tar.zst
Small refactoring
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
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);