mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 17:31:18 +00:00
Corrected bug in [nextWordFromIndex:forward:]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7364 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dd5e607d3e
commit
a66e46a6c7
1 changed files with 1 additions and 7 deletions
|
@ -324,13 +324,7 @@ static NSString *attachmentString()
|
|||
range: range];
|
||||
if (range.length == 0)
|
||||
return 0;
|
||||
range = NSMakeRange(range.location, location - range.location);
|
||||
range = [str rangeOfCharacterFromSet: wordCSet()
|
||||
options: NSLiteralSearch
|
||||
range: range];
|
||||
if (range.length == 0)
|
||||
return 0;
|
||||
return range.location;
|
||||
return NSMaxRange(range);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue