Commit 77de29be authored by Matan Ziv-Av's avatar Matan Ziv-Av Committed by Tomaz Canabrava
Browse files

A hack to avoid scrolling when not moving the cursor.

parent 9a608fe4
......@@ -1849,7 +1849,7 @@ int Screen::addPlacement(QPixmap pixmap,
addPlacement(p);
int needScroll = qBound(0, row + rows - _lines + 1, rows);
if (scrolling && needScroll > moveCursor) {
if (moveCursor && scrolling && needScroll > moveCursor) {
scrollUp(needScroll - moveCursor);
}
if (moveCursor) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment