Skip to content

Commit

Permalink
Fix a small bug in preedit highlighted rect without candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOYoon-Tsaw committed Apr 5, 2021
1 parent 0d26585 commit 6edcd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SquirrelPanel.m
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ - (void)drawRect:(NSRect)dirtyRect {
preeditRect.size.height += theme.edgeInset.height + theme.preeditLinespace / 2 + theme.hilitedCornerRadius / 2;
preeditRect.origin = NSMakePoint(textField.origin.x - theme.edgeInset.width, textField.origin.y - theme.edgeInset.height);
if (_highlightedRange.length == 0) {
preeditRect.size.height += theme.edgeInset.height - theme.preeditLinespace / 2;
preeditRect.size.height += theme.edgeInset.height - theme.preeditLinespace / 2 - theme.hilitedCornerRadius / 2;
}
if (theme.preeditBackgroundColor != nil) {
preeditPath = drawSmoothLines(rectVertex(preeditRect), 0, 0);
Expand Down

0 comments on commit 6edcd56

Please sign in to comment.