]> git.mdlowis.com Git - projs/tide.git/commitdiff
tweaked current line highlight
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 14 Jun 2017 12:16:25 +0000 (08:16 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 14 Jun 2017 12:16:25 +0000 (08:16 -0400)
lib/win.c

index f17c5899b8156d7495c06ad494a291abd4c069ef..9b485884aafcfd7e852dd06f1ed4aa07ca486678 100644 (file)
--- 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;