* Source/NSTextView_actions.m: Fix keyboard movement scrolling.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24037 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-11-06 16:04:12 +00:00
parent dc1e1120e0
commit 9bf357a90c
2 changed files with 5 additions and 3 deletions

View file

@ -746,21 +746,19 @@ added to the selection (1,3).
[self setSelectedRange: NSMakeRange(anchor, cindex - anchor)
affinity: NSSelectionAffinityDownstream
stillSelecting: NO];
[self scrollRangeToVisible: NSMakeRange(anchor, cindex - anchor)];
}
else
{
[self setSelectedRange: NSMakeRange(cindex, anchor - cindex)
affinity: NSSelectionAffinityUpstream
stillSelecting: NO];
[self scrollRangeToVisible: NSMakeRange(cindex, anchor - cindex)];
}
}
else
{
[self setSelectedRange: NSMakeRange(cindex, 0)];
[self scrollRangeToVisible: NSMakeRange(cindex, 0)];
}
[self scrollRangeToVisible: NSMakeRange(cindex, 0)];
}
- (void) _move: (GSInsertionPointMovementDirection)direction