We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c63b7b commit 5e584c1Copy full SHA for 5e584c1
src/main/java/club/bytecode/the/jda/gui/fileviewer/JDATextArea.java
@@ -52,7 +52,7 @@ public void caretUpdate(CaretEvent e) {
52
int cursorPos = e.getDot();
53
int line = getLineOfOffset(cursorPos);
54
for (Token t = getTokenListForLine(line); t != null; t = t.getNextToken()) {
55
- if (t.getOffset() <= cursorPos && t.getEndOffset() >= cursorPos) {
+ if (t.getOffset() <= cursorPos && t.getEndOffset() > cursorPos) {
56
currentlySelectedToken = new TokenWrapper(t);
57
break;
58
}
0 commit comments