diff --git a/honoka/src/romkan.cpp b/honoka/src/romkan.cpp index 7fb21f2..5af95a1 100644 --- a/honoka/src/romkan.cpp +++ b/honoka/src/romkan.cpp @@ -394,12 +394,16 @@ if (buf.length()) buf = buf.substr(0,buf.length() - 1); // BS���˥Хåե���Ƭ��ʸ���������� // ���ΰ�ʸ�������󥰥�Х��ȤǤʤ��ä������˴��� - if (pos && (!removeRemainder) && ((pos - buf.size()) > 0)) { - String s = utf8_wcstombs(text.substr(pos - (buf.length() + 1),1)); - if (s.length() == 1) { - buf = s + buf; - eval(); + if (pos && (!removeRemainder)) { + while((pos - buf.size()) > 0) { + String s = utf8_wcstombs(text.substr(pos - (buf.length() + 1),1)); + if (s.length() == 1) { + buf = s + buf; + } else break; } + eval(); + return; + } }