aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-03-06 14:30:19 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-03-06 14:30:19 +0000
commit8b864dcab92cfb110aab29f98a900cb86066a40e (patch)
treeb08a054def9e514cb7108bce7d9d84451abce89c /display.c
parentfix indent (diff)
downloadw3m-8b864dcab92cfb110aab29f98a900cb86066a40e.tar.gz
w3m-8b864dcab92cfb110aab29f98a900cb86066a40e.zip
[w3m-dev 03794] displayBuffer() when CurrentTab == NULL.
* display.c (displayBuffer): check buf * linein.c (inputLineHistSearch): check CurrentTab (next_dcompl): check CurrentTab (_editor): check CurrentTab * main.c (resize_screen): check CurrentTab From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'display.c')
-rw-r--r--display.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/display.c b/display.c
index 31d77f9..d0897e4 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.64 2003/02/06 17:16:56 ukai Exp $ */
+/* $Id: display.c,v 1.65 2003/03/06 14:30:25 ukai Exp $ */
#include <signal.h>
#include "fm.h"
@@ -372,6 +372,8 @@ displayBuffer(Buffer *buf, int mode)
Str msg;
int ny = 0;
+ if (!buf)
+ return;
if (buf->topLine == NULL && readBufferCache(buf) == 0) { /* clear_buffer */
mode = B_FORCE_REDRAW;
}