aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-18 16:42:12 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-18 16:42:12 +0000
commit0f8e3f888100c553785713d88a4132b2fb1327d8 (patch)
tree35ff0480b3e3c919fa07f6f89377e6a890a6c5db /display.c
parent[w3m-dev 03442] Re: setting form on loading (diff)
downloadw3m-0f8e3f888100c553785713d88a4132b2fb1327d8.tar.gz
w3m-0f8e3f888100c553785713d88a4132b2fb1327d8.zip
[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 (limited to '')
-rw-r--r--display.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/display.c b/display.c
index 48d9768..dbd9c18 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.32 2002/11/15 15:23:45 ukai Exp $ */
+/* $Id: display.c,v 1.33 2002/11/18 16:42:25 ukai Exp $ */
#include <signal.h>
#include "fm.h"
@@ -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();
}