summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/announce.c9
-rw-r--r--mbbsd/edit.c1
2 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index 84e89ad2..7c2954ec 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -13,11 +13,12 @@ static struct CopyTmp *copytmp;
void
a_copyitem(char *fpath, char *title, char *owner, int mode)
{
- if(copytmp == NULL)
- copytmp = (struct CopyTmp*)malloc(sizeof(struct CopyTmp));
if(copytmp == NULL) {
- if(mode) vmsg("«þ¨©¥¢±Ñ");
- return;
+ copytmp = (struct CopyTmp*)malloc(sizeof(struct CopyTmp));
+ if(copytmp == NULL) {
+ if(mode) vmsg("«þ¨©¥¢±Ñ");
+ return;
+ }
}
memset(copytmp, 0, sizeof(struct CopyTmp));
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 390e3d30..12524430 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -2578,6 +2578,7 @@ vedit(char *fpath, int saveheader, int *islocal)
else
return tmp;
}
+ oldcurrline = curr_buf->currline;
curr_buf->redraw_everything = YEA;
break;
case Ctrl('W'):