1.5 Support find next loop when not comment | 支持没有注释时循环查找下一个对象

This commit is contained in:
林万程
2022-02-27 15:08:48 +08:00
parent 89a0c1cd60
commit 4789827a8b
7 changed files with 42 additions and 22 deletions

View File

@@ -50,7 +50,8 @@ public class LineEnd extends EditorLinePainter {
if (document == null) {
return null;
}
if (document.getLineCount() < lineNumber) {
// lineNumber start 0, as 1 <= 1 should return
if (document.getLineCount() <= lineNumber) {
return null;
}
int startOffset = document.getLineStartOffset(lineNumber);