[w3m-dev 02748] cleanup code for restoring cursor position

From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2001-12-26 18:17:57 +00:00
parent e8865ad8a0
commit 91f74e09ec
6 changed files with 123 additions and 111 deletions

4
fm.h
View File

@@ -1,4 +1,4 @@
/* $Id: fm.h,v 1.33 2001/12/25 18:15:00 ukai Exp $ */
/* $Id: fm.h,v 1.34 2001/12/26 18:17:57 ukai Exp $ */
/*
* w3m: WWW wo Miru utility
*
@@ -391,6 +391,8 @@ typedef struct _Buffer {
}
#define SAVE_BUFPOSITION(sbufp) COPY_BUFPOSITION(sbufp, Currentbuf)
#define RESTORE_BUFPOSITION(sbufp) COPY_BUFPOSITION(Currentbuf, sbufp)
#define TOP_LINENUMBER(buf) ((buf)->topLine ? (buf)->topLine->linenumber : 1)
#define CUR_LINENUMBER(buf) ((buf)->currentLine ? (buf)->currentLine->linenumber : 1)
#define NO_BUFFER ((Buffer*)1)