From c2ed03b2f8d21836a16cdfc53a23c159db48d0ad Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 28 Oct 2001 09:38:43 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@1334 cda61777-01e9-0310-a592-d414129be87e --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index 5cd4c17f..412f6b4e 100644 --- a/terminal.c +++ b/terminal.c @@ -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--; -- 2.11.0