From 182387c0a890b4fb63572c0001e00271ec425e78 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 7 Jun 2005 13:48:08 +0000 Subject: dbcs_aware: can be toggled. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2789 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/edit.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mbbsd/edit.c') diff --git a/mbbsd/edit.c b/mbbsd/edit.c index dea2ffa7..c0bab9c4 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -213,7 +213,6 @@ static const char *table_mode[6] = { }; #ifdef DBCSAWARE_EDIT - static char mbcs_mode =1; #define IS_BIG5_HI(x) (0x81 <= (x) && (x) <= 0xfe) @@ -1896,7 +1895,7 @@ display_textline_internal(textline_t *p, int i, int min, int max) newpnt = fix_cursor(p->data, newpnt, FC_LEFT); if(newpnt == curr_buf->edit_margin-1) { - (*output)(" "); + (*output)("\033[1m\033[m"); pdata++; } (*output)(pdata); @@ -2477,6 +2476,10 @@ vedit(char *fpath, int saveheader, int *islocal) currutmp->mode = EDITING; currutmp->destuid = currstat; +#ifdef DBCSAWARE_EDIT + mbcs_mode = !(cuser.uflag & RAWDBCS_FLAG); +#endif + enter_edit_buffer(); curr_buf->oldcurrline = curr_buf->currline = curr_buf->top_of_win = -- cgit v1.2.3