aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAraki Ken <arakiken@users.sf.net>2014-09-27 12:36:12 +0000
committerTatsuya Kinoshita <tats@debian.org>2014-12-06 11:47:05 +0000
commit0c25fd96f7d077e14eac2f8579b7d5c3abfc8f78 (patch)
tree75c690e30d39581d6eb81a884e6b62ed30fce711
parentimg2sixel exits by Ctrl+C. Enable GIF Animation if 'I' is pressed to show it. (diff)
downloadw3m-0c25fd96f7d077e14eac2f8579b7d5c3abfc8f78.tar.gz
w3m-0c25fd96f7d077e14eac2f8579b7d5c3abfc8f78.zip
Show GIF (except animation GIF) correctly.
Diffstat (limited to '')
-rw-r--r--terms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/terms.c b/terms.c
index dc00764..50114db 100644
--- a/terms.c
+++ b/terms.c
@@ -562,7 +562,7 @@ save_first_animation_frame(const char *path)
if( body) {
/* Graphic Control Extension */
save_gif(new_path->ptr, header, header_size, body, p - 3 - body);
- break;
+ return new_path;
}
else {
/* skip the first frame. */
@@ -571,7 +571,7 @@ save_first_animation_frame(const char *path)
}
}
- return new_path;
+ return NULL;
}
void ttymode_set(int mode, int imode);