several fixes
This commit is contained in:
parent
f11ea5b54f
commit
b1babd4b88
4 changed files with 6 additions and 4 deletions
|
|
@ -173,7 +173,7 @@ void sj4_ime_key(Sj4Ime* ime, int key) {
|
|||
|
||||
key = toupper(key);
|
||||
|
||||
if(ime->romabuf[strlen(ime->romabuf) - 1] == 'N' && !(key == 'A' || key == 'I' || key == 'U' || key == 'E' || key == 'O' || key == 'Y' || key == 'N')) {
|
||||
if(strlen(ime->romabuf) > 0 && ime->romabuf[strlen(ime->romabuf) - 1] == 'N' && !(key == 'A' || key == 'I' || key == 'U' || key == 'E' || key == 'O' || key == 'Y' || key == 'N')) {
|
||||
ime->romabuf[strlen(ime->romabuf) + 1] = 0;
|
||||
ime->romabuf[strlen(ime->romabuf)] = 'N';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue