Changeset 1125


Ignore:
Timestamp:
Jun 29, 2011, 7:55:54 PM (6 years ago)
Author:
stefan
Message:

fixed bug that led to an exception when jump to was applied outside of the current line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sce/codehelper/PatternPair.java

    r996 r1125  
    5555   */
    5656  public List<WordWithPos> find(String rowString, int row, int column) {
     57    if (rowString.length() <= column) return null;
     58
    5759    Matcher leftMatcher = leftPattern.matcher(rowString.substring(0, column));
    5860    Matcher rightMatcher = rightPattern.matcher(rowString.substring(column, rowString.length()));
Note: See TracChangeset for help on using the changeset viewer.