From: Michael D. Lowis Date: Thu, 17 Nov 2016 00:13:10 +0000 (-0500) Subject: Fixed highlighting of selection for lines that contain tab characters X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c079c2f61005f9a546bab5295305c908e8fe67d0;p=projs%2Ftide.git Fixed highlighting of selection for lines that contain tab characters --- diff --git a/libx/x11.c b/libx/x11.c index af194e6..385f898 100644 --- a/libx/x11.c +++ b/libx/x11.c @@ -366,7 +366,8 @@ void x11_draw_glyphs(int fg, int bg, XGlyphSpec* specs, size_t nspecs) { int w = extent.xOff; int h = (font->height - font->descent); xftcolor(&bgc, Config->palette[bg]); - x11_draw_rect(bg, specs[0].x, specs[0].y - h, nspecs * w, font->height); + size_t width = specs[nspecs-1].x - specs[0].x + w; + x11_draw_rect(bg, specs[0].x, specs[0].y - h, width, font->height); XftColorFree(X.display, X.visual, X.colormap, &bgc); } xftcolor(&fgc, Config->palette[fg]); diff --git a/xedit b/xedit index e660043..e298f02 100755 Binary files a/xedit and b/xedit differ