1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 00:34:26 +03:00

GH-620 Compute the width for underline correctly

This commit is contained in:
Tae Won Ha 2018-03-19 20:00:51 +01:00
parent f0ebb72da1
commit 258bab3a1e
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -158,7 +158,7 @@ static CGColorRef color_for(NSInteger value) {
CGContextSetFillColorWithColor(context, color_for(color));
CGRect rect = {
{positions[0].x, positions[0].y + _underlinePosition},
{positions[0].x + positions[count - 1].x + _cellSize.width, _underlineThickness}
{count * _cellSize.width, _underlineThickness}
};
CGContextFillRect(context, rect);
}