diff options
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r-- | mbbsd/edit.c | 4 |
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) { |