mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-29 16:56:40 +03:00
GH-620 Compute the width for underline correctly
This commit is contained in:
parent
f0ebb72da1
commit
258bab3a1e
@ -158,7 +158,7 @@ static CGColorRef color_for(NSInteger value) {
|
|||||||
CGContextSetFillColorWithColor(context, color_for(color));
|
CGContextSetFillColorWithColor(context, color_for(color));
|
||||||
CGRect rect = {
|
CGRect rect = {
|
||||||
{positions[0].x, positions[0].y + _underlinePosition},
|
{positions[0].x, positions[0].y + _underlinePosition},
|
||||||
{positions[0].x + positions[count - 1].x + _cellSize.width, _underlineThickness}
|
{count * _cellSize.width, _underlineThickness}
|
||||||
};
|
};
|
||||||
CGContextFillRect(context, rect);
|
CGContextFillRect(context, rect);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user