fix for JAL-3765
[jalview.git] / src / jalview / analysis / Finder.java
index c545c7f..d52e42a 100644 (file)
@@ -417,7 +417,7 @@ public class Finder implements FinderI
      * update residueIndex to next position after the start of the match
      * (findIndex returns a value base 1, columnIndex is held base 0)
      */
-    residueIndex += offset + 1;
+    residueIndex = searchPattern.matchedFrom()+1;
 
     /*
      * return false if the match is entirely in a hidden region