*simplified code.

This commit is contained in:
paladin-t 2016-02-19 17:33:03 +08:00
parent f6d17ef9cf
commit a6aeab3ad8

View File

@ -4811,8 +4811,7 @@ static int _parse_char(mb_interpreter_t* s, char c, int pos, unsigned short row,
context->current_char = c; context->current_char = c;
if(context->parsing_state == _PS_NORMAL) { if(context->parsing_state == _PS_NORMAL) {
if(c >= 'a' && c <= 'z') c = toupper(c);
c += 'A' - 'a';
if(_is_blank(c)) { /* \t ' ' */ if(_is_blank(c)) { /* \t ' ' */
_mb_check(result = _cut_symbol(s, pos, row, col), _exit); _mb_check(result = _cut_symbol(s, pos, row, col), _exit);