selstart and selend, otherwise all those worthy ideals go *foom*
while the mouse buttons are held down.
git-svn-id: svn://svn.tartarus.org/sgt/putty@1274
cda61777-01e9-0310-a592-
d414129be87e
* of course, if the line _hasn't_ moved into the
* scrollback then we don't do this, and cut them off
* at the top of the scroll region.
+ *
+ * This applies to selstart and selend (for an existing
+ * selection), and also selanchor (for one being
+ * selected as we speak).
*/
seltop = sb ? -savelines : 0;
selend.x = 0;
}
}
+ if (selanchor.y >= seltop && selanchor.y <= botline) {
+ selanchor.y--;
+ if (selanchor.y < seltop) {
+ selanchor.y = seltop;
+ selanchor.x = 0;
+ }
+ }
lines--;
}