From 004bed327e87e05dcc7f673401ca45605a4cbaa5 Mon Sep 17 00:00:00 2001 From: scw Date: Sat, 12 Feb 2005 12:22:53 +0000 Subject: Fix quoting and file editing bug. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2503 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/edit.c b/mbbsd/edit.c index e06a7239..afcf76f7 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -2448,7 +2448,7 @@ vedit(char *fpath, int saveheader, int *islocal) enter_edit_buffer(); - oldcurrline = curr_buf->currline = curr_buf->top_of_win = + curr_buf->currline = curr_buf->top_of_win = curr_buf->firstline = curr_buf->lastline = alloc_line(WRAPMARGIN); if (*fpath) @@ -2463,7 +2463,7 @@ vedit(char *fpath, int saveheader, int *islocal) } /* No matter you quote or not, just start the cursor from (0,0) */ - curr_buf->currline = curr_buf->firstline; + oldcurrline = curr_buf->currline = curr_buf->firstline; curr_buf->currpnt = curr_buf->currln = curr_buf->curr_window_line = curr_buf->edit_margin = curr_buf->last_margin = 0; while (1) { -- cgit v1.2.3