From ea80c735207d72b22a953374296a5255d903ba4e Mon Sep 17 00:00:00 2001 From: Bert Date: Mon, 21 Feb 2011 16:49:34 +0100 Subject: Fixed title for thumbnail mode --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index e3a2237..9eab704 100644 --- a/main.c +++ b/main.c @@ -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; -- cgit v1.2.3-54-g00ecf