aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-06 03:19:30 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-06 03:19:30 +0000
commit8503b2be4e94c8d0ca8718c3cc1b1fd1ff8789ad (patch)
treea29f3a7fa8332969c288c57b7e57d6b9c7151b62 /display.c
parentadd TODO (diff)
downloadw3m-8503b2be4e94c8d0ca8718c3cc1b1fd1ff8789ad.tar.gz
w3m-8503b2be4e94c8d0ca8718c3cc1b1fd1ff8789ad.zip
[w3m-dev 03375] NULL check of CurrentTab
* display.c (disp_message_nsec): check CurrentTab * file.c (doExternal): check CurrentTab * image.c (loadImage): check CurrentTab From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--display.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/display.c b/display.c
index 6a971e5..ad84220 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.27 2002/11/05 17:12:02 ukai Exp $ */
+/* $Id: display.c,v 1.28 2002/11/06 03:19:30 ukai Exp $ */
#include <signal.h>
#include "fm.h"
@@ -1047,7 +1047,7 @@ disp_message_nsec(char *s, int redraw_current, int sec, int purge, int mouse)
fprintf(stderr, "%s\n", conv_to_system(s));
return;
}
- if (Currentbuf != NULL)
+ if (CurrentTab != NULL && Currentbuf != NULL)
message(s, Currentbuf->cursorX + Currentbuf->rootX,
Currentbuf->cursorY + Currentbuf->rootY);
else
@@ -1062,7 +1062,7 @@ disp_message_nsec(char *s, int redraw_current, int sec, int purge, int mouse)
if (mouse && use_mouse)
mouse_inactive();
#endif
- if (Currentbuf != NULL && redraw_current)
+ if (CurrentTab != NULL && Currentbuf != NULL && redraw_current)
displayBuffer(Currentbuf, B_NORMAL);
}