Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/KeywordFilter.java @ 121:b1d6208fb517
Conditionally apply filters to file content
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 04 Feb 2011 03:37:09 +0100 |
parents | ed2b4adac51c |
children | 44b97930570c |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/KeywordFilter.java Fri Feb 04 03:23:47 2011 +0100 +++ b/src/org/tmatesoft/hg/internal/KeywordFilter.java Fri Feb 04 03:37:09 2011 +0100 @@ -115,7 +115,7 @@ // not to run into such situation throw new IllegalStateException("Try src buffer of a greater size"); } - rv = ByteBuffer.allocate(keywordStart - x); + rv = ByteBuffer.allocate(keywordStart - copyFrom); } // copy all from source till latest possible kw start copySlice(src, copyFrom, keywordStart, rv);