[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>
This commit is contained in:
Fumitoshi UKAI
2002-12-18 16:33:19 +00:00
parent 4922417449
commit 22fc4c640a
4 changed files with 27 additions and 12 deletions

View File

@@ -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)