Commit 336e310f authored by Matan Ziv-Av's avatar Matan Ziv-Av
Browse files

Scroll when a drawn sixel extends beyond bottom of line

Commit e0b4b96a introduced a bug where the cursor did not move when drawing a sixel image, even when sixel scrolling mode is set.
parent 70aecfe9
Pipeline #159275 passed with stage
in 2 minutes and 11 seconds
......@@ -2343,7 +2343,7 @@ void Vt102Emulation::SixelModeDisable()
pixmap = pixmap.scaled(pixmap.width(), m_aspect.first * pixmap.height() / m_aspect.second);
}
int rows = -1, cols = -1;
int needScroll = _currentScreen->addPlacement(pixmap, rows, cols, row, col, m_SixelScrolling, false, false);
int needScroll = _currentScreen->addPlacement(pixmap, rows, cols, row, col, m_SixelScrolling, m_SixelScrolling, false);
if (m_SixelScrolling) {
if (rows - needScroll > 0) {
_currentScreen->cursorDown(rows - needScroll);
......
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