Menu

Commit [r4371]  Maximize  Restore  History

This commit fixes a long-standing bug in the logic of the Find/Replace machine of DrJava. When searching wraps around the end (or beginning if searching backwards), the machine must search more than the complement of the text already searched because the already searched text may contain a suffix (prefix for backwards searching) of the "find" word that it is searching for. The old code only searched the complement.

The following file was modified:

M src/edu/rice/cs/drjava/model/FindReplaceMachine.java

rcartwright 2008-02-29

changed /trunk/drjava/src/edu/rice/cs/drjava/model/FindReplaceMachine.java
/trunk/drjava/src/edu/rice/cs/drjava/model/FindReplaceMachine.java Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB