st

Luke's fork of the suckless terminal: vim-bindings, Xresrouces colors, transparency
Log | Files | Refs | README | LICENSE

commit 689add8aad04680b3882e08583ba9cbb7d91ca88
parent e7db668a0ace9a0c2a21f2fa1fe4531c0c15ce0f
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Wed,  1 Apr 2020 09:40:53 -0400

middle click pastes selection again

Diffstat:
Mconfig.h | 3+--
Mx.c | 2+-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/config.h b/config.h @@ -240,10 +240,9 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Prior, zoom, {.f = +1} }, { TERMMOD, XK_Next, zoom, {.f = -1} }, { MODKEY, XK_Home, zoomreset, {.f = 0} }, - { ShiftMask, XK_Insert, clippaste, {.i = 0} }, { MODKEY, XK_c, clipcopy, {.i = 0} }, + { ShiftMask, XK_Insert, clippaste, {.i = 0} }, { MODKEY, XK_v, clippaste, {.i = 0} }, - { MODKEY, XK_p, selpaste, {.i = 0} }, { XK_ANY_MOD, Button2, selpaste, {.i = 0} }, { MODKEY, XK_Num_Lock, numlock, {.i = 0} }, { MODKEY, XK_Control_L, iso14755, {.i = 0} }, diff --git a/x.c b/x.c @@ -678,7 +678,7 @@ brelease(XEvent *e) } if (e->xbutton.button == Button2) - clippaste(NULL); + selpaste(NULL); else if (e->xbutton.button == Button1) mousesel(e, 1); }