From e442c118b8590e3fb4b3b69aa51dc0022323fd6b Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 28 Jan 2003 16:42:02 +0000 Subject: fix indent --- buffer.c | 4 ++-- image.c | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/buffer.c b/buffer.c index 2c986ed..0cbc168 100644 --- a/buffer.c +++ b/buffer.c @@ -1,4 +1,4 @@ -/* $Id: buffer.c,v 1.25 2003/01/28 16:41:03 ukai Exp $ */ +/* $Id: buffer.c,v 1.26 2003/01/28 16:42:02 ukai Exp $ */ #include "fm.h" #ifdef USE_MOUSE @@ -573,7 +573,7 @@ reshapeBuffer(Buffer *buf) if (n) { buf->topLine = lineSkip(buf, buf->topLine, n, FALSE); if (cur->real_linenumber > 0) - gotoRealLine(buf, cur->real_linenumber); + gotoRealLine(buf, cur->real_linenumber); else gotoLine(buf, cur->linenumber); } diff --git a/image.c b/image.c index 49ed6f0..5c0e2e8 100644 --- a/image.c +++ b/image.c @@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.27 2003/01/22 16:10:28 ukai Exp $ */ +/* $Id: image.c,v 1.29 2003/01/28 16:46:54 ukai Exp $ */ #include "fm.h" #include @@ -335,8 +335,12 @@ loadImage(int flag) bzero(image_cache, sizeof(ImageCache *) * MAX_LOAD_IMAGE); } - if (flag == IMG_FLAG_STOP) { - for (i = 0; i < n_load_image; i++) { + if (flag == IMG_FLAG_STOP || flag == IMG_FLAG_START) { + if (flag == IMG_FLAG_STOP) + i = 0; + else + i = maxLoadImage; + for (; i < n_load_image; i++) { cache = image_cache[i]; if (!cache) continue; -- cgit v1.2.3