mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
(no message)
This commit is contained in:
@@ -295,6 +295,7 @@ public class SelectWordUtil {
|
||||
}
|
||||
|
||||
private static TextRange getWordSelectionRange(CharSequence editorText, int cursorOffset) {
|
||||
if (editorText.length() == 0) return null;
|
||||
if (cursorOffset > 0 && !Character.isJavaIdentifierPart(editorText.charAt(cursorOffset)) &&
|
||||
Character.isJavaIdentifierPart(editorText.charAt(cursorOffset - 1))) {
|
||||
cursorOffset--;
|
||||
|
||||
Reference in New Issue
Block a user