ref: 371fe66160a278041a25c39162a4bbcd4e0cc333
parent: c471b6bf820684b415d206b50ac09e80c14352ac
author: phil9 <telephil9@gmail.com>
date: Fri Feb 4 13:41:05 EST 2022
fix selection issue corner case right-clicking the currently selected message did not open the pager as we were explicitely checking that the selection has changed before pushing an event on the channel. We now specifically check for this case and only publish an event without changing the selection.
--- a/index.c
+++ b/index.c
@@ -296,7 +296,11 @@
}else if(m.buttons & 2){
/* TODO: menu */
}else if(m.buttons & 4){
- select(indexat(m.xy), showc);
+ n = indexat(m.xy);
+ if(n != sel)
+ select(indexat(m.xy), showc);
+ else
+ sendp(showc, messageat(sel));
}else if(m.buttons & 8){
n = mousescrollsize(nlines);
scroll(-n);