From 1a3e5b7119064b6d9e21d2c8531e091624d17f10 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 26 Apr 2005 13:46:01 +0000 Subject: when reply, top_line must be fixed again. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2715 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/edit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd') 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; -- cgit v1.2.3