From: Michael D. Lowis Date: Wed, 14 Jun 2017 12:16:25 +0000 (-0400) Subject: tweaked current line highlight X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=dc0534f7be654d97ff19ec80501545b9b0e5f3f9;p=projs%2Ftide.git tweaked current line highlight --- diff --git a/lib/win.c b/lib/win.c index f17c589..9b48588 100644 --- a/lib/win.c +++ b/lib/win.c @@ -375,11 +375,11 @@ static void draw_line_num(bool current, size_t x, size_t y, size_t gcols, size_t if (current) { color = CLR_CurrentLine; size_t fheight = x11_font_height(Font); - x11_draw_rect((color >> 8), x-3, y-fheight, gutter_size(), fheight); + x11_draw_rect((color >> 8), x-3, y-fheight-1, gutter_size(), fheight); } UGlyph glyphs[gcols]; for (int i = gcols-1; i >= 0; i--) { - glyphs[i].attr = color; + glyphs[i].attr = color & 0xFF; if (num > 0) { glyphs[i].rune = ((num % 10) + '0'); num /= 10;