commit acec9f5bd8fecd597cae23cd8ac697fa2865dcf5
parent f3e6cfe2b119c4ed1507f6fdd78396c486ccbbfe
Author: ukai <ukai>
Date: Mon, 18 Nov 2002 16:42:12 +0000
[w3m-dev 03443] Can't display "echo only_one_line | w3m"
* display.c (redrawNLine): check 1st line
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-19 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 03443] Can't display "echo only_one_line | w3m"
+ * display.c (redrawNLine): check 1st line
+
2002-11-16 Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03442] Re: setting form on loading
diff --git a/display.c b/display.c
@@ -481,6 +481,8 @@ redrawNLine(Buffer *buf, int n)
l = l0;
}
if (n > 0) {
+ if (i == 0 && buf->topLine != NULL)
+ i++;
move(i + buf->rootY, 0);
clrtobotx();
}