isAutoActivateOkay() checks the character after the caret, but shouldn't it check the character before the caret?
|
public boolean isAutoActivateOkay(JTextComponent tc) { |
|
Document doc = tc.getDocument(); |
|
char ch = 0; |
|
try { |
|
doc.getText(tc.getCaretPosition(), 1, s); |
|
ch = s.first(); |
|
} catch (BadLocationException ble) { // Never happens |
|
ble.printStackTrace(); |
|
} |
|
return (autoActivateAfterLetters && Character.isLetter(ch)) || |
|
(autoActivateChars!=null && autoActivateChars.indexOf(ch)>-1); |
|
} |
isAutoActivateOkay() checks the character after the caret, but shouldn't it check the character before the caret?
AutoComplete/AutoComplete/src/main/java/org/fife/ui/autocomplete/CompletionProviderBase.java
Lines 166 to 177 in da75dd9