From dc0534f7be654d97ff19ec80501545b9b0e5f3f9 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 14 Jun 2017 08:16:25 -0400 Subject: [PATCH] tweaked current line highlight --- lib/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.49.0