From 22fc4c640a30f5ffe44cc76e0e5f50eb7f8412a3 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 18 Dec 2002 16:33:19 +0000 Subject: [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 --- display.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'display.c') 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 #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) -- cgit v1.2.3