1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:57:35 +00:00

Terminal: Unbreak single-line text selection.

This commit is contained in:
Andreas Kling 2019-06-30 15:11:56 +02:00
parent f6498bb0e9
commit daf44d5ec5

View file

@ -1210,7 +1210,7 @@ BufferPosition Terminal::buffer_position_at(const Point& position) const
int column = adjusted_position.x() / font().glyph_width('x'); int column = adjusted_position.x() / font().glyph_width('x');
if (row < 0) if (row < 0)
row = 0; row = 0;
if (column < m_columns) if (column < 0)
column = 0; column = 0;
if (row >= m_rows) if (row >= m_rows)
row = m_rows - 1; row = m_rows - 1;