aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-27 16:18:48 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-27 16:18:48 +0000
commit68c534d2ed443399934b24ac92bfa8991ccccf39 (patch)
tree9faf58b92941e3a6faa3cbee1c299e73951e5f17 /main.c
parentfix indent (diff)
downloadw3m-68c534d2ed443399934b24ac92bfa8991ccccf39.tar.gz
w3m-68c534d2ed443399934b24ac92bfa8991ccccf39.zip
[w3m-dev 03689] Re: fold patch
* fm.h (BufferPos): add bpos * main.c (save_buffer_position): bpos initialize (resetPos): reset bpos From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 2f12fc5..c06573f 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.200 2003/01/25 17:42:17 ukai Exp $ */
+/* $Id: main.c,v 1.201 2003/01/27 16:18:53 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -6313,6 +6313,7 @@ save_buffer_position(Buffer *buf)
b->cur_linenumber = CUR_LINENUMBER(buf);
b->currentColumn = buf->currentColumn;
b->pos = buf->pos;
+ b->bpos = buf->currentLine ? buf->currentLine->bpos : 0;
b->next = NULL;
b->prev = buf->undo;
if (buf->undo)
@@ -6328,6 +6329,7 @@ resetPos(BufferPos * b)
top.linenumber = b->top_linenumber;
cur.linenumber = b->cur_linenumber;
+ cur.bpos = b->bpos;
buf.topLine = &top;
buf.currentLine = &cur;
buf.pos = b->pos;