mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:31:03 +00:00
* Source/NSTextView.m (-selectionRangeForProposedRange:granularity:):
Remove a special case which caused this method to refuse to expand a range {[string length], 0}. This was why the align left/center/right menu items didn't work in Ink when the insertion point was at the end of a document. The behaviour should match OS X now. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32935 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b7c1c823a8
commit
ca64b1c62f
2 changed files with 9 additions and 7 deletions
|
@ -3451,13 +3451,6 @@ afterString in order over charRange.
|
|||
NSString *string = [self string];
|
||||
unsigned length = [string length];
|
||||
|
||||
if (proposedCharRange.location >= length)
|
||||
{
|
||||
proposedCharRange.location = length;
|
||||
proposedCharRange.length = 0;
|
||||
return proposedCharRange;
|
||||
}
|
||||
|
||||
if (NSMaxRange (proposedCharRange) > length)
|
||||
{
|
||||
proposedCharRange.length = length - proposedCharRange.location;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue