summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-17 13:11:52 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-17 13:11:52 +0800
commit3382e681e1a9248c1648af81d53d79449eacc082 (patch)
tree6beb2c2b32d34530522090fb98ad9051851f7fd4 /mbbsd/edit.c
parent31826a2ba2d4074436e93ba93e17032a86dc6258 (diff)
downloadpttbbs-3382e681e1a9248c1648af81d53d79449eacc082.tar
pttbbs-3382e681e1a9248c1648af81d53d79449eacc082.tar.gz
pttbbs-3382e681e1a9248c1648af81d53d79449eacc082.tar.bz2
pttbbs-3382e681e1a9248c1648af81d53d79449eacc082.tar.lz
pttbbs-3382e681e1a9248c1648af81d53d79449eacc082.tar.xz
pttbbs-3382e681e1a9248c1648af81d53d79449eacc082.tar.zst
pttbbs-3382e681e1a9248c1648af81d53d79449eacc082.zip
fixed FILE_REPLIED: ent was used as a temp buffer
for curredit in mail_reply. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3182 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 5a38289b..af58f2ea 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -2705,7 +2705,7 @@ vedit(char *fpath, int saveheader, int *islocal)
int money = 0;
int interval = 0;
time4_t th = now;
- int count = 0, tin = 0;
+ int count = 0, tin = 0, quoted = 0;
char trans_buffer[256];
char mytitle[STRLEN];
@@ -2732,9 +2732,11 @@ vedit(char *fpath, int saveheader, int *islocal)
if (*quote_file) {
do_quote();
*quote_file = '\0';
+ quoted = 1;
}
- if(curr_buf->oldcurrline != curr_buf->firstline || curr_buf->currline != curr_buf->firstline) {
+ if( curr_buf->oldcurrline != curr_buf->firstline ||
+ curr_buf->currline != curr_buf->firstline) {
/* we must adjust because cursor (currentline) moved. */
curr_buf->oldcurrline = curr_buf->currline = curr_buf->top_of_win =
curr_buf->firstline= adjustline(curr_buf->firstline, WRAPMARGIN);
@@ -2744,6 +2746,12 @@ vedit(char *fpath, int saveheader, int *islocal)
curr_buf->currpnt = curr_buf->currln = curr_buf->curr_window_line =
curr_buf->edit_margin = curr_buf->last_margin = 0;
+ /* if quote, move to end of file. */
+ if(quoted)
+ {
+ /* maybe do this in future. */
+ }
+
while (1) {
if (curr_buf->redraw_everything || has_block_selection()) {
refresh_window();