summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-12 20:22:53 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-12 20:22:53 +0800
commit004bed327e87e05dcc7f673401ca45605a4cbaa5 (patch)
treefe9489f44ee02079b47c41d1d127d703e9dbafb7 /mbbsd
parent0c2af16a2d261a1331edd8a529776ef1dd5e202c (diff)
downloadpttbbs-004bed327e87e05dcc7f673401ca45605a4cbaa5.tar
pttbbs-004bed327e87e05dcc7f673401ca45605a4cbaa5.tar.gz
pttbbs-004bed327e87e05dcc7f673401ca45605a4cbaa5.tar.bz2
pttbbs-004bed327e87e05dcc7f673401ca45605a4cbaa5.tar.lz
pttbbs-004bed327e87e05dcc7f673401ca45605a4cbaa5.tar.xz
pttbbs-004bed327e87e05dcc7f673401ca45605a4cbaa5.tar.zst
pttbbs-004bed327e87e05dcc7f673401ca45605a4cbaa5.zip
Fix quoting and file editing bug.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2503 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/edit.c4
1 files changed, 2 insertions, 2 deletions
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) {