Commit f9dabd2a authored by Matan Ziv-Av's avatar Matan Ziv-Av Committed by Kurt Hindenburg
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.

(cherry picked from commit 336e310f)
parent 100199e3
......@@ -2340,7 +2340,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);
......
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