Fixed title for thumbnail mode

This commit is contained in:
Bert
2011-02-21 16:49:34 +01:00
parent f2b8a75f6c
commit ea80c73520
3 changed files with 25 additions and 7 deletions

4
main.c
View File

@ -155,8 +155,8 @@ void update_title() {
if (mode == MODE_THUMBS) {
n = snprintf(win_title, TITLE_LEN, "sxiv: [%d/%d] %s",
tns.cnt ? fileidx + 1 : 0, tns.cnt,
tns.cnt ? filenames[fileidx] : "");
tns.cnt ? tns.sel + 1 : 0, tns.cnt,
tns.cnt ? filenames[tns.sel] : "");
} else {
if (img.valid) {
size = filesize;