diff --git a/scim-wnn/src/romkan.cpp b/scim-wnn/src/romkan.cpp index d61cf4d..6fbccb5 100644 --- a/scim-wnn/src/romkan.cpp +++ b/scim-wnn/src/romkan.cpp @@ -80,7 +80,8 @@ buf += k; String s; s = k; - text = text.substr(0,pos) + utf8_mbstowcs(s) + text.substr(pos ++); + text = text.substr(0,pos) + utf8_mbstowcs(s) + text.substr(pos); + pos ++; //return(text); return(eval()); } @@ -255,7 +256,7 @@ if (!buf.length()) return(false); if (buf[buf.length() - 1] == 'Z') { if (key.code == SCIM_KEY_space) { - insert(key.get_ascii_code()); + insert(' '); return(true); } }