Searched refs:caret (Results 1 – 1 of 1) sorted by relevance
1762 private int getOffsetToLeftRightOf(int caret, boolean toLeft) { in getOffsetToLeftRightOf() argument1763 int line = getLineForOffset(caret); in getOffsetToLeftRightOf()1772 if (caret == lineEnd) { in getOffsetToLeftRightOf()1777 return caret; // at very end, don't move in getOffsetToLeftRightOf()1781 if (caret == lineStart) { in getOffsetToLeftRightOf()1786 return caret; // at very start, don't move in getOffsetToLeftRightOf()1810 caret = lineStart + tl.getOffsetToLeftRightOf(caret - lineStart, toLeft); in getOffsetToLeftRightOf()1812 return caret; in getOffsetToLeftRightOf()