X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/4f2fd423424c92779feda00478f18e8743f5cea3..5a8afc787bcaafabd3aee68b6dac341962801b57:/terminal.c diff --git a/terminal.c b/terminal.c index 67a738c1..a39a379d 100644 --- a/terminal.c +++ b/terminal.c @@ -769,14 +769,14 @@ static void scroll(Terminal *term, int topline, int botline, int lines, int sb) if (term->selstart.y >= topline && term->selstart.y <= botline) { term->selstart.y++; if (term->selstart.y > botline) { - term->selstart.y = botline; + term->selstart.y = botline + 1; term->selstart.x = 0; } } if (term->selend.y >= topline && term->selend.y <= botline) { term->selend.y++; if (term->selend.y > botline) { - term->selend.y = botline; + term->selend.y = botline + 1; term->selend.x = 0; } }