diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-04-26 21:46:01 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-04-26 21:46:01 +0800 |
commit | 1a3e5b7119064b6d9e21d2c8531e091624d17f10 (patch) | |
tree | c1650769f22f3231c5714bf1d78813b30d4730cd | |
parent | bc22c36abbb65c2c072693a268e7fc0aac27b537 (diff) | |
download | pttbbs-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
-rw-r--r-- | mbbsd/edit.c | 6 |
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; |