mcabber/mcabber/screen.c
changeset 1748 51a23403cc80
parent 1743 dcbf31f99fa3
child 1756 e2c084204583
equal deleted inserted replaced
1747:c4f67e2e675f 1748:51a23403cc80
  3189     if (!iswalnum(get_char(ptr_inputline))) {
  3189     if (!iswalnum(get_char(ptr_inputline))) {
  3190       if (!stopsymbol_allowed) break;
  3190       if (!stopsymbol_allowed) break;
  3191     } else {
  3191     } else {
  3192       stopsymbol_allowed = 0;
  3192       stopsymbol_allowed = 0;
  3193       if (upcase)
  3193       if (upcase)
  3194         *ptr_inputline = towupper(get_char(ptr_inputline));
  3194         put_char(ptr_inputline, towupper(get_char(ptr_inputline)));
  3195       else
  3195       else
  3196         *ptr_inputline = towlower(get_char(ptr_inputline));
  3196         put_char(ptr_inputline, towlower(get_char(ptr_inputline)));
  3197     }
  3197     }
  3198     ptr_inputline = next_char(ptr_inputline);
  3198     ptr_inputline = next_char(ptr_inputline);
  3199   }
  3199   }
  3200 
  3200 
  3201   check_offset(1);
  3201   check_offset(1);
  3210     if (!iswalnum(get_char(ptr_inputline))) {
  3210     if (!iswalnum(get_char(ptr_inputline))) {
  3211       if (!stopsymbol_allowed) break;
  3211       if (!stopsymbol_allowed) break;
  3212     } else {
  3212     } else {
  3213       stopsymbol_allowed = 0;
  3213       stopsymbol_allowed = 0;
  3214       if (!upcased) {
  3214       if (!upcased) {
  3215         *ptr_inputline = towupper(get_char(ptr_inputline));
  3215         put_char(ptr_inputline, towupper(get_char(ptr_inputline)));
  3216         upcased = 1;
  3216         upcased = 1;
  3217       } else *ptr_inputline = towlower(get_char(ptr_inputline));
  3217       } else
       
  3218         put_char(ptr_inputline, towlower(get_char(ptr_inputline)));
  3218     }
  3219     }
  3219     ptr_inputline = next_char(ptr_inputline);
  3220     ptr_inputline = next_char(ptr_inputline);
  3220   }
  3221   }
  3221 
  3222 
  3222   check_offset(1);
  3223   check_offset(1);