浏览代码

Better fix for issue #25

master
Bert Münnich 13 年前
父节点
当前提交
71a7940d74
共有 3 个文件被更改,包括 7 次插入7 次删除
  1. +1
    -1
      Makefile
  2. +1
    -4
      commands.c
  3. +5
    -2
      main.c

+ 1
- 1
Makefile 查看文件

@@ -1,4 +1,4 @@
VERSION = 1.0
VERSION = git-20111101

CC = gcc
CFLAGS = -ansi -Wall -pedantic -O2


+ 1
- 4
commands.c 查看文件

@@ -69,10 +69,7 @@ bool it_switch_mode(arg_t a) {
img.slideshow = false;
reset_timeout(slideshow);
}
if (fileidx < tns.cnt)
tns.sel = fileidx;
else
tns.sel = tns.cnt > 0 ? tns.cnt - 1 : 0;
tns.sel = fileidx;
tns.dirty = true;
mode = MODE_THUMB;
} else {


+ 5
- 2
main.c 查看文件

@@ -416,10 +416,13 @@ void run(void) {
{
/* load thumbnails */
set_timeout(redraw, TO_REDRAW_THUMBS, false);
if (tns_load(&tns, tns.cnt, &files[tns.cnt], false, false))
if (tns_load(&tns, tns.cnt, &files[tns.cnt], false, false)) {
tns.cnt++;
else
} else {
remove_file(tns.cnt, false);
if (tns.sel >= tns.cnt)
tns.sel--;
}
if (tns.cnt == filecnt)
redraw();
else


||||||
x
 
000:0
正在加载...
取消
保存