diff --git a/honoka/plugins/wordsprediction.cpp b/honoka/plugins/wordsprediction.cpp index a5f81cb..d7c656a 100644 --- a/honoka/plugins/wordsprediction.cpp +++ b/honoka/plugins/wordsprediction.cpp @@ -60,7 +60,8 @@ for(unsigned int i = str.length();i > 0;i --) { //if (isalnum(utf8_wcstombs(str).c_str()[i - 1])) if (((str[i - 1] >= 0x0041) && (str[i - 1] <= 0x005A)) || - ((str[i - 1] >= 0x0061) && (str[i - 1] <= 0x007A))) + ((str[i - 1] >= 0x0061) && (str[i - 1] <= 0x007A)) || + ((str[i - 1] >= 0x0030) && (str[i - 1] <= 0x0039))) word = str[i - 1] + word; else break; }