aboutsummaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
authorqsmodo <75080827+qsmodo@users.noreply.github.com>2021-09-12 20:26:07 +0200
committerBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-16 21:55:31 +0200
commit156a53780c7b27aeb7b4de7de56450f26c55a192 (patch)
tree6d8820c2b8d862e7b878cb9cf9bf31d32e26eb56 /thumbs.c
parent91d9b3128eb5502306f688e68c42e83b3020cb56 (diff)
downloadnsxiv-156a53780c7b27aeb7b4de7de56450f26c55a192.tar.zst
set title based on prefix and suffix (#23)
Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: NRK <nrk@disroot.org> Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thumbs.c b/thumbs.c
index 4238aa0..3aa03fb 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -35,6 +35,7 @@ void exif_auto_orientate(const fileinfo_t*);
Imlib_Image img_open(const fileinfo_t*);
static char *cache_dir;
+extern const int fileidx;
char* tns_cache_filepath(const char *filepath)
{
@@ -531,6 +532,7 @@ bool tns_move_selection(tns_t *tns, direction_t dir, int cnt)
if (!tns->dirty)
tns_highlight(tns, *tns->sel, true);
}
+ win_set_title(tns->win, tns->files[fileidx].path);
return *tns->sel != old;
}