diff options
author | Araki Ken <arakiken@users.sf.net> | 2014-09-27 12:25:42 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2014-12-06 11:47:05 +0000 |
commit | 4459dbe26e18850c43d78974ba4aeb50258fa028 (patch) | |
tree | 88dd20c97598ad13509021d083ed45d33098bd90 /main.c | |
parent | Add declaration of get_pixel_per_cell(). (diff) | |
download | w3m-4459dbe26e18850c43d78974ba4aeb50258fa028.tar.gz w3m-4459dbe26e18850c43d78974ba4aeb50258fa028.zip |
img2sixel exits by Ctrl+C. Enable GIF Animation if 'I' is pressed to show it.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |