mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-166967 Extend selection doesn't surround comment words with apostrophes correctly
making it work for words with hyphen
This commit is contained in:
+2
@@ -140,6 +140,8 @@ public class NaturalLanguageTextSelectioner extends ExtendWordSelectionHandlerBa
|
||||
private static void addWordRange(CharSequence editorText, int cursorOffset, ArrayList<TextRange> result) {
|
||||
SelectWordUtil.addWordSelection(false, editorText, cursorOffset, result,
|
||||
ch -> Character.isJavaIdentifierPart(ch) || ch == '\'');
|
||||
SelectWordUtil.addWordSelection(false, editorText, cursorOffset, result,
|
||||
ch -> Character.isJavaIdentifierPart(ch) || ch == '\'' || ch == '-');
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user