aboutsummaryrefslogtreecommitdiffstats
path: root/fm.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-10 15:51:14 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-10 15:51:14 +0000
commit4eb0a6fe3d36a162666f7ca5e6275a07f3f6affb (patch)
treec21477e45fd1b81032d792a2ab93a98a9e5f352f /fm.h
parent[w3m-dev 03552] Re: link list (diff)
downloadw3m-4eb0a6fe3d36a162666f7ca5e6275a07f3f6affb.tar.gz
w3m-4eb0a6fe3d36a162666f7ca5e6275a07f3f6affb.zip
[w3m-dev 03553] Undo/Redo
* fm.h (Buffer): add undo (BufferPos): added * funcname.tab (REDO): added (UNDO): added * main.c (save_buffer_position): added (main): save_buffer_position (resetPos): added (undoPos): added (redoPos): added * proto.h (undoPos): added (redoPos): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'fm.h')
-rw-r--r--fm.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/fm.h b/fm.h
index 5b706fd..0fa4cbd 100644
--- a/fm.h
+++ b/fm.h
@@ -1,4 +1,4 @@
-/* $Id: fm.h,v 1.94 2002/12/06 16:50:13 ukai Exp $ */
+/* $Id: fm.h,v 1.95 2002/12/10 15:51:14 ukai Exp $ */
/*
* w3m: WWW wo Miru utility
*
@@ -460,8 +460,18 @@ typedef struct _Buffer {
char image_flag;
char need_reshape;
Anchor *submit;
+ struct _BufferPos *undo;
} Buffer;
+typedef struct _BufferPos {
+ long top_linenumber;
+ long cur_linenumber;
+ short currentColumn;
+ short pos;
+ struct _BufferPos *next;
+ struct _BufferPos *prev;
+} BufferPos;
+
typedef struct _TabBuffer {
struct _TabBuffer *nextTab;
struct _TabBuffer *prevTab;