diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-03-06 14:30:19 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-03-06 14:30:19 +0000 |
commit | 8b864dcab92cfb110aab29f98a900cb86066a40e (patch) | |
tree | b08a054def9e514cb7108bce7d9d84451abce89c /linein.c | |
parent | fix indent (diff) | |
download | w3m-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 'linein.c')
-rw-r--r-- | linein.c | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: linein.c,v 1.27 2003/02/05 16:43:58 ukai Exp $ */ +/* $Id: linein.c,v 1.28 2003/03/06 14:30:26 ukai Exp $ */ #include "fm.h" #include "local.h" #include "myctype.h" @@ -287,8 +287,10 @@ inputLineHistSearch(char *prompt, char *def_str, int flag, Hist *hist, break; } while (i_cont); - if (need_redraw) - displayBuffer(Currentbuf, B_FORCE_REDRAW); + if (CurrentTab) { + if (need_redraw) + displayBuffer(Currentbuf, B_FORCE_REDRAW); + } #ifdef SUPPORT_WIN9X_CONSOLE_MBCS disable_win9x_console_input(); @@ -755,7 +757,8 @@ next_dcompl(int next) if (cm_mode == CPL_NEVER || cm_mode & CPL_OFF) return; cm_disp_clear = FALSE; - displayBuffer(Currentbuf, B_FORCE_REDRAW); + if (CurrentTab) + displayBuffer(Currentbuf, B_FORCE_REDRAW); if (LASTLINE >= 3) { comment = TRUE; @@ -1150,5 +1153,6 @@ _editor(void) Strcat_char(strBuf, *p); } CLen = CPos = setStrType(strBuf, strProp); - displayBuffer(Currentbuf, B_FORCE_REDRAW); + if (CurrentTab) + displayBuffer(Currentbuf, B_FORCE_REDRAW); } |