Krolyxon
Commit f52603b

Branches

Refs →

nsxivf52603b

Small refactoring

Author
Bert
Date
2011-06-24 13:28 +0200
Parent
03009f5
Commit
f52603b31a50a2e7159cc3229d36ec214c3064f0

+3 −4

2 files changed

  1. M Makefile +1 −1
  2. M main.c +2 −3
M Makefile View
@@ -1,6 +1,6 @@
11 all: sxiv
22
3−VERSION = git-20110606
3+VERSION = git-20110624
44
55 CC = gcc
66 DESTDIR =
M main.c View
@@ -144,9 +144,8 @@ void update_title() {
144144 }
145145
146146 if (n >= TITLE_LEN) {
147− win_title[TITLE_LEN - 2] = '.';
148− win_title[TITLE_LEN - 3] = '.';
149− win_title[TITLE_LEN - 4] = '.';
147+ for (n = 0; n < 3; n++)
148+ win_title[TITLE_LEN - n - 2] = '.';
150149 }
151150
152151 win_set_title(&win, win_title);