Commit 8a70b7c1 authored by Christian Persch's avatar Christian Persch

emulation: Fix off-by-one in TSR

#28
parent cb34c788
......@@ -7736,10 +7736,10 @@ Terminal::TSR(vte::parser::Sequence const& seq)
*/
auto const pos = seq.collect1(0);
if (pos < 0 || pos >= m_column_count)
if (pos < 1 || pos > m_column_count)
return;
m_tabstops.unset(pos);
m_tabstops.unset(pos - 1);
}
void
......
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