aboutsummaryrefslogtreecommitdiffstats
path: root/fm.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-25 13:43:51 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-25 13:43:51 +0000
commit3bf20cf505324a545c1a777e1c3fa8621c0c8fbc (patch)
tree8f8e6e50a9bdfb0d74f3592503bf0566b88592f2 /fm.h
parent[w3m-dev 02723] cleanup resizing (diff)
downloadw3m-3bf20cf505324a545c1a777e1c3fa8621c0c8fbc.tar.gz
w3m-3bf20cf505324a545c1a777e1c3fa8621c0c8fbc.zip
[w3m-dev 02726] incremental search
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--fm.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/fm.h b/fm.h
index 46a8c66..7cead02 100644
--- a/fm.h
+++ b/fm.h
@@ -1,4 +1,4 @@
-/* $Id: fm.h,v 1.30 2001/12/23 14:44:00 ukai Exp $ */
+/* $Id: fm.h,v 1.31 2001/12/25 13:43:51 ukai Exp $ */
/*
* w3m: WWW wo Miru utility
*
@@ -229,6 +229,7 @@ extern int REV_LB[];
* Macros.
*/
+#define inputLineHist(p,d,f,h) inputLineHistSearch(p,d,f,h,NULL)
#define inputLine(p,d,f) inputLineHist(p,d,f,NULL)
#define inputStr(p,d) inputLine(p,d,IN_STRING)
#define inputStrHist(p,d,h) inputLineHist(p,d,IN_STRING,h)
@@ -378,6 +379,19 @@ typedef struct _Buffer {
#endif
} Buffer;
+
+#define COPY_BUFPOSITION(dstbuf, srcbuf) {\
+ (dstbuf)->topLine = (srcbuf)->topLine; \
+ (dstbuf)->currentLine = (srcbuf)->currentLine; \
+ (dstbuf)->pos = (srcbuf)->pos; \
+ (dstbuf)->cursorX = (srcbuf)->cursorX; \
+ (dstbuf)->cursorY = (srcbuf)->cursorY; \
+ (dstbuf)->visualpos = (srcbuf)->visualpos; \
+ (dstbuf)->currentColumn = (srcbuf)->currentColumn; \
+}
+#define SAVE_BUFPOSITION(sbufp) COPY_BUFPOSITION(sbufp, Currentbuf)
+#define RESTORE_BUFPOSITION(sbufp) COPY_BUFPOSITION(Currentbuf, sbufp)
+
#define NO_BUFFER ((Buffer*)1)
#define RB_STACK_SIZE 10