aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-18 16:33:19 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-18 16:33:19 +0000
commit22fc4c640a30f5ffe44cc76e0e5f50eb7f8412a3 (patch)
tree520a1a65c026780156504301fd0e7e475ff1fb12 /display.c
parent* main.c (DefaultAlarm): fix initialize value (diff)
downloadw3m-22fc4c640a30f5ffe44cc76e0e5f50eb7f8412a3.tar.gz
w3m-22fc4c640a30f5ffe44cc76e0e5f50eb7f8412a3.zip
[w3m-dev 03579] Re: clean up displayBuffer()
* display.c (displayBuffer): re calcTabPos() when force or image redraw * main.c (_mark): force redraw (reinit): redraw image * search.c (backwardSearch): found_last From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'display.c')
-rw-r--r--display.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/display.c b/display.c
index f8c02bc..97eec10 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.47 2002/12/14 15:26:44 ukai Exp $ */
+/* $Id: display.c,v 1.48 2002/12/18 16:33:19 ukai Exp $ */
#include <signal.h>
#include "fm.h"
@@ -385,6 +385,8 @@ displayBuffer(Buffer *buf, int mode)
|| mouse_action.menu_str
#endif
) {
+ if (mode == B_FORCE_REDRAW || mode == B_REDRAW_IMAGE)
+ calcTabPos();
ny = LastTab->y + 2;
if (ny > LASTLINE)
ny = LASTLINE;
@@ -578,7 +580,6 @@ redrawNLine(Buffer *buf, int n)
TabBuffer *t;
int l;
- calcTabPos();
move(0, 0);
#ifdef USE_MOUSE
if (mouse_action.menu_str)