mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:40:36 +00:00
Fix issue where the insertion point was not placed in an empty last
line of a text view when clicking with the mouse. Fix issue where the insertion point was not placed in an empty last line when using the down arrow key (bug #15893). Fix issue where the insertion point was placed incorrectly if the last line of a text view ends in an invisible character (e.g., a tab). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29584 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
414b85653e
commit
f61bf18e28
3 changed files with 43 additions and 2 deletions
|
@ -1936,6 +1936,13 @@ or add guards
|
|||
point.x -= _textContainerOrigin.x;
|
||||
point.y -= _textContainerOrigin.y;
|
||||
|
||||
if ([_layoutManager extraLineFragmentTextContainer] == _textContainer)
|
||||
{
|
||||
NSRect extraRect = [_layoutManager extraLineFragmentRect];
|
||||
if (point.y >= NSMinY(extraRect))
|
||||
return [_textStorage length];
|
||||
}
|
||||
|
||||
index = [_layoutManager glyphIndexForPoint: point
|
||||
inTextContainer: _textContainer
|
||||
fractionOfDistanceThroughGlyph: &fraction];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue