summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-04-26 21:46:01 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-04-26 21:46:01 +0800
commit1a3e5b7119064b6d9e21d2c8531e091624d17f10 (patch)
treec1650769f22f3231c5714bf1d78813b30d4730cd /mbbsd/edit.c
parentbc22c36abbb65c2c072693a268e7fc0aac27b537 (diff)
downloadpttbbs-1a3e5b7119064b6d9e21d2c8531e091624d17f10.tar
pttbbs-1a3e5b7119064b6d9e21d2c8531e091624d17f10.tar.gz
pttbbs-1a3e5b7119064b6d9e21d2c8531e091624d17f10.tar.bz2
pttbbs-1a3e5b7119064b6d9e21d2c8531e091624d17f10.tar.lz
pttbbs-1a3e5b7119064b6d9e21d2c8531e091624d17f10.tar.xz
pttbbs-1a3e5b7119064b6d9e21d2c8531e091624d17f10.tar.zst
pttbbs-1a3e5b7119064b6d9e21d2c8531e091624d17f10.zip
when reply, top_line must be fixed again.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2715 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 9401e172..584f3abc 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -2481,13 +2481,13 @@ vedit(char *fpath, int saveheader, int *islocal)
*quote_file = '\0';
}
- /* No matter you quote or not, just start the cursor from (0,0) */
if(curr_buf->oldcurrline != curr_buf->firstline || curr_buf->currline != curr_buf->firstline) {
/* we must adjust because cursor (currentline) moved. */
- curr_buf->firstline = adjustline(curr_buf->firstline, WRAPMARGIN);
- curr_buf->oldcurrline = curr_buf->currline = curr_buf->firstline;
+ curr_buf->oldcurrline = curr_buf->currline = curr_buf->top_of_win =
+ curr_buf->firstline= adjustline(curr_buf->firstline, WRAPMARGIN);
}
+ /* No matter you quote or not, just start the cursor from (0,0) */
curr_buf->currpnt = curr_buf->currln = curr_buf->curr_window_line =
curr_buf->edit_margin = curr_buf->last_margin = 0;