private List<String> resetCompletions() { String text = getText(); updateCurrentWord(false); completions = null; if (isEqualsRequired && !text.startsWith("=")) return null; boolean korean = app.getLocale().getLanguage().equals("ko"); // start autocompletion only for words with at least two characters if (korean) { if (Korean.flattenKorean(curWord.toString()).length() < 2) { completions = null; return null; } } else { if (curWord.length() < 2) { completions = null; return null; } } cmdPrefix = curWord.toString(); if (korean) completions = dict.getCompletionsKorean(cmdPrefix); else completions = dict.getCompletions(cmdPrefix); completions = getSyntaxes(completions); return completions; }