Commit 5d6d0b43 authored by Matan Ziv-Av's avatar Matan Ziv-Av Committed by Tomaz Canabrava
Browse files

Keep selection cursor in place when scrolling due to output

parent f26f71db
Pipeline #241067 passed with stage
in 6 minutes and 30 seconds
......@@ -1334,6 +1334,7 @@ void Screen::scrollUp(int from, int n)
if (_hasGraphics) {
scrollPlacements(n);
}
_selCuY = qMax(_selCuY - n, -_history->getLines());
if (_replMode != REPL_None) {
if (_replModeStart.first > 0) {
_replModeStart = std::make_pair(_replModeStart.first - 1, _replModeStart.second);
......
Supports Markdown
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