1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Improve drag select (dragging outside LHS doesn't now select first

char too)

[originally from svn r20]
This commit is contained in:
Simon Tatham 1999-01-22 09:36:21 +00:00
parent a1078ecce4
commit 0fc1c0c9c9

View File

@ -1345,7 +1345,13 @@ void term_mouse (Mouse_Button b, Mouse_Action a, int x, int y) {
if (y<0) y = 0;
if (y>=rows) y = rows-1;
if (x<0) x = 0;
if (x<0) {
if (y > 0) {
x = cols-1;
y--;
} else
x = 0;
}
if (x>=cols) x = cols-1;
selpoint = disptop + y * (cols+1) + x;