Skip to content
Snippets Groups Projects
Commit de5a12f3 authored by George Nachman's avatar George Nachman
Browse files

Fix bug where find highlights wouldn't wrap lines properly.

parent ec4d9480
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3695,7 +3695,15 @@ static double EuclideanDistance(NSPoint p1, NSPoint p2) {
set = YES;
}
char* b = [data mutableBytes];
for (int i = resStartX; i < MIN(resEndX+1, width); i++) {
int lineEndX = MIN(resEndX + 1, width);
int lineStartX = resStartX;
if (absEndY > y) {
lineEndX = width;
}
if (y > absStartY) {
lineStartX = 0;
}
for (int i = lineStartX; i < lineEndX; i++) {
const int byteIndex = i/8;
const int bit = 1 << (i & 7);
if (byteIndex < [data length]) {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment