aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorAraki Ken <arakiken@users.sf.net>2014-09-27 12:25:42 +0000
committerTatsuya Kinoshita <tats@debian.org>2014-12-06 11:47:05 +0000
commit4459dbe26e18850c43d78974ba4aeb50258fa028 (patch)
tree88dd20c97598ad13509021d083ed45d33098bd90 /main.c
parentAdd declaration of get_pixel_per_cell(). (diff)
downloadw3m-4459dbe26e18850c43d78974ba4aeb50258fa028.tar.gz
w3m-4459dbe26e18850c43d78974ba4aeb50258fa028.zip
img2sixel exits by Ctrl+C. Enable GIF Animation if 'I' is pressed to show it.
Diffstat (limited to '')
-rw-r--r--main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.c b/main.c
index 5d8de21..32f4da2 100644
--- a/main.c
+++ b/main.c
@@ -5917,8 +5917,14 @@ deleteFiles()
Firstbuf = buf;
}
}
- while ((f = popText(fileToDelete)) != NULL)
+ while ((f = popText(fileToDelete)) != NULL) {
unlink(f);
+ if (enable_inline_image == 2 && strcmp(f+strlen(f)-4, ".gif") == 0) {
+ Str firstframe = Strnew_charp(f);
+ Strcat_charp(firstframe, "-1");
+ unlink(firstframe->ptr);
+ }
+ }
}
void