aboutsummaryrefslogtreecommitdiffstats
path: root/fm.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-26 18:17:57 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-26 18:17:57 +0000
commit91f74e09ec828e73037d094b3e4063601ebb7ce2 (patch)
tree20539d8e870b2525475e49402d0a56feaeb87125 /fm.h
parent[w3m-dev 02735] (diff)
downloadw3m-91f74e09ec828e73037d094b3e4063601ebb7ce2.tar.gz
w3m-91f74e09ec828e73037d094b3e4063601ebb7ce2.zip
[w3m-dev 02748] cleanup code for restoring cursor position
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--fm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fm.h b/fm.h
index 3534e96..fb9eeb9 100644
--- a/fm.h
+++ b/fm.h
@@ -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)