ref: 71267ec566774d632b376a3fb60a27d4e6faf46c
parent: cae6d00f2bb23945b64267b985925fd041f5aa38
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Nov 15 07:51:39 EST 2021
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){