Skip to content

Commit

Permalink
Merge pull request gnachman#79 from DHowett/master
Browse files Browse the repository at this point in the history
Use lineHeight instead of the character height as the cursor height.
  • Loading branch information
gnachman committed Apr 25, 2012
2 parents 3ea4409 + 269dc54 commit 33274a2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions PTYTextView.m
Expand Up @@ -6758,13 +6758,7 @@ - (BOOL)drawInputMethodEditorTextAt:(int)xStart

- (double)cursorHeight
{
double cursorHeight;
if (lineHeight < charHeightWithoutSpacing) {
cursorHeight = lineHeight;
} else {
cursorHeight = charHeightWithoutSpacing;
}
return cursorHeight;
return MAX(lineHeight, charHeightWithoutSpacing);
}

- (void)_drawCursor
Expand Down

0 comments on commit 33274a2

Please sign in to comment.