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

Terminal: Fixed bounding issue when clearing the selection on type

We were checking the columns of the whole selection instead of the
the specfic line were modifying. Because of this, the selection
remained if the selection's column on another line was less than
the cursor.
This commit is contained in:
rhin123 2019-08-25 11:20:32 -05:00 committed by Andreas Kling
parent eb9ccf1c0a
commit 0df7213670
2 changed files with 15 additions and 3 deletions

View file

@ -66,6 +66,8 @@ private:
void invalidate_cursor();
Size compute_base_size() const;
int first_selection_column_on_row(int row) const;
int last_selection_column_on_row(int row) const;
VT::Terminal m_terminal;