diff options
author | Bert <ber.t@gmx.com> | 2011-02-21 16:49:34 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-02-21 16:49:34 +0100 |
commit | ea80c735207d72b22a953374296a5255d903ba4e (patch) | |
tree | 364178a9084215bb8aa120154982e3dad6a3a570 /main.c | |
parent | f2b8a75f6cb3a9cbbaddd2e16f9ba9105b650142 (diff) |
Fixed title for thumbnail mode
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |