From: simon Date: Sun, 28 Oct 2001 09:38:43 +0000 (+0000) Subject: Fix silly scrolling-vs-selection bug: if you selected text on line X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/c2ed03b2f8d21836a16cdfc53a23c159db48d0ad 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 --- 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--;