Browse Source

Terminal: Unbreak single-line text selection.

Andreas Kling 6 years ago
parent
commit
daf44d5ec5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Applications/Terminal/Terminal.cpp

+ 1 - 1
Applications/Terminal/Terminal.cpp

@@ -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;