diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-07 21:48:08 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-07 21:48:08 +0800 |
commit | 182387c0a890b4fb63572c0001e00271ec425e78 (patch) | |
tree | 8fa3dc61344225d39efe56dfb0f9a19bcf9f6940 /mbbsd/edit.c | |
parent | 72cc341f9fe53547460915edcf32cc99630898c5 (diff) | |
download | pttbbs-182387c0a890b4fb63572c0001e00271ec425e78.tar pttbbs-182387c0a890b4fb63572c0001e00271ec425e78.tar.gz pttbbs-182387c0a890b4fb63572c0001e00271ec425e78.tar.bz2 pttbbs-182387c0a890b4fb63572c0001e00271ec425e78.tar.lz pttbbs-182387c0a890b4fb63572c0001e00271ec425e78.tar.xz pttbbs-182387c0a890b4fb63572c0001e00271ec425e78.tar.zst pttbbs-182387c0a890b4fb63572c0001e00271ec425e78.zip |
dbcs_aware: can be toggled.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2789 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r-- | mbbsd/edit.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 = |