* 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--;
}