shithub: orca

Download patch

ref: e95728d892e8e0e89ac8528329368e3c1d3d5105
parent: b0c2e60ec99cc8009e860f01cb965dfb3ac01594
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Feb 23 18:38:45 EST 2020

plan9: holding shift with left mouse button extends the selection without changing cursor position

--- a/plan9.c
+++ b/plan9.c
@@ -1314,11 +1314,11 @@
 
 		case Cmouse:
 			if (m.buttons == 1) {
-				if (oldbuttons == 0) {
+				if (oldbuttons == 0 && !shiftdown) {
 					cur = ptmouse(m.xy);
 					sel.min = cur;
 					sel.max = cur;
-				} else if (oldbuttons == 1) {
+				} else if (oldbuttons == 1 || shiftdown) {
 					sel.max = ptmouse(m.xy);
 					sel.min = sel.max;
 					if (sel.max.x < cur.x)