ref: 1da2343c78f70ff691716e5aefc44303a691da27
parent: cae6d00f2bb23945b64267b985925fd041f5aa38
parent: 71267ec566774d632b376a3fb60a27d4e6faf46c
author: phil9 <60197351+telephil9@users.noreply.github.com>
date: Mon Nov 15 11:48:28 EST 2021
Merge pull request #2 from ftrvxmtrx/button-4 select on button 4 before activating
--- a/main.c
+++ b/main.c
@@ -245,14 +245,14 @@
int n;
if(ptinrect(m->xy, lr)){
- if(m->buttons == 1){
+ if(m->buttons == 1 || m->buttons == 4){
n = lineat(m->xy);
if(n != -1 && (loff + n) < nmatches){
changesel(lsel, n);
lsel = n;
}
- }else if(m->buttons == 4){
- activate();
+ if(m->buttons == 4)
+ activate();
}else if(m->buttons == 8){
scroll(-scrollsize, 1);
}else if(m->buttons == 16){