This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
sxiv
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fixed issue
#25
: invalid file cnt and sel in thumb mode
master
Bert Münnich
13 years ago
parent
1cdbeb972a
commit
ac1300ae00
2 changed files
with
5 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
Makefile
+4
-1
commands.c
+ 1
- 1
Makefile
View File
@@ -1,4 +1,4 @@
VERSION = git-201110
27
VERSION = git-201110
31
CC = gcc
CFLAGS = -ansi -Wall -pedantic -O2
+ 4
- 1
commands.c
View File
@@ -69,7 +69,10 @@ bool it_switch_mode(arg_t a) {
img.slideshow = false;
reset_timeout(slideshow);
}
tns.sel = fileidx;
if (fileidx < tns.cnt)
tns.sel = fileidx;
else
tns.sel = tns.cnt > 0 ? tns.cnt - 1 : 0;
tns.dirty = true;
mode = MODE_THUMB;
} else {
Write
Preview
Loading…
Cancel
Save