1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 23:58:06 -05:00

Fix silly scrolling-vs-selection bug: if you selected text on line

9, then did ANSI Delete Line on line 10, the selection highlight
would move up a line even though it wasn't over any text that
actually moved. Easy to reproduce in the likes of vi. Trivial fix.

[originally from svn r1334]
This commit is contained in:
Simon Tatham 2001-10-28 09:38:43 +00:00
parent 8493e83d74
commit 9bbe53d700

View File

@ -676,7 +676,7 @@ static void scroll(int topline, int botline, int lines, int sb)
* selection), and also selanchor (for one being
* selected as we speak).
*/
seltop = sb ? -savelines : 0;
seltop = sb ? -savelines : topline;
if (selstart.y >= seltop && selstart.y <= botline) {
selstart.y--;