From cbf9e4351c4846bdb6c04bfcb676d40331a9710b Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 4 Apr 2018 09:28:19 -0400 Subject: [PATCH] only draw the cursor the selection size is 0 --- lib/config.c | 2 +- lib/x11.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config.c b/lib/config.c index 514e600..99ab05d 100644 --- a/lib/config.c +++ b/lib/config.c @@ -30,7 +30,7 @@ int /* Integer config options */ ExpandTabs = ON, DosLineFeed = OFF; -#define GRUVBOX 1 +#define PARCHMENT 1 #if defined(GRUVBOX) int Palette[ClrCount] = { diff --git a/lib/x11.c b/lib/x11.c index daef1ee..08ddbcb 100644 --- a/lib/x11.c +++ b/lib/x11.c @@ -761,7 +761,7 @@ static void draw_view(int i, int width, int height, int bg, int fg, int csr, int draw_glyphs(Regions[i].x, Regions[i].y + ((y+1) * fheight), row->cols, row->rlen, row->len); } /* place the cursor on screen */ - if (Regions[i].csrx != SIZE_MAX && Regions[i].csry != SIZE_MAX) { + if (!view_selsize(win_view(i)) && Regions[i].csrx != SIZE_MAX && Regions[i].csry != SIZE_MAX) { x11_draw_rect(csr, Regions[i].x + (Regions[i].csrx * fwidth), Regions[i].y + (Regions[i].csry * fheight), -- 2.54.0