]> git.mdlowis.com Git - projs/tide.git/commitdiff
only draw the cursor the selection size is 0
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 4 Apr 2018 13:28:19 +0000 (09:28 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 4 Apr 2018 13:28:19 +0000 (09:28 -0400)
lib/config.c
lib/x11.c

index 514e6003f00a2d53466cfc452ee31162c5e6b31f..99ab05d15507171ede76a05913044612a5db407a 100644 (file)
@@ -30,7 +30,7 @@ int /* Integer config options */
     ExpandTabs = ON,
     DosLineFeed = OFF;
 
-#define GRUVBOX 1
+#define PARCHMENT 1
 
 #if defined(GRUVBOX)
 int Palette[ClrCount] = {
index daef1ee58a7ac94704bc55cfce9a9a0eb7afccf1..08ddbcb156f5967ff85f1c7ca5633048a98c40f7 100644 (file)
--- 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),