mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 21:15:03 -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:
parent
8493e83d74
commit
9bbe53d700
@ -676,7 +676,7 @@ static void scroll(int topline, int botline, int lines, int sb)
|
|||||||
* selection), and also selanchor (for one being
|
* selection), and also selanchor (for one being
|
||||||
* selected as we speak).
|
* selected as we speak).
|
||||||
*/
|
*/
|
||||||
seltop = sb ? -savelines : 0;
|
seltop = sb ? -savelines : topline;
|
||||||
|
|
||||||
if (selstart.y >= seltop && selstart.y <= botline) {
|
if (selstart.y >= seltop && selstart.y <= botline) {
|
||||||
selstart.y--;
|
selstart.y--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user