mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Find in folder excerpt would be one byte too short for last line
Since it was one byte it would throw an exception if the last character on the line was a multi-byte sequence (as we’d create an NSString with malformed/truncated UTF-8).
This commit is contained in:
@@ -240,7 +240,7 @@ namespace find
|
||||
size_t eol = it.to;
|
||||
if(bol != eol)
|
||||
{
|
||||
while(eol+1 < text.size() && linefeed_length(text, eol) == 0)
|
||||
while(eol < text.size() && linefeed_length(text, eol) == 0)
|
||||
++eol;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user