diff --git a/src/textwin.cpp b/src/textwin.cpp index 2bdcf6e8..ffab4742 100644 --- a/src/textwin.cpp +++ b/src/textwin.cpp @@ -1023,7 +1023,7 @@ void TextWindow::MouseEvent(bool leftClick, bool leftDown, double x, double y) { break; } } - if(r >= rows) { + if(r >= rows || c >= MAX_COLS) { SetMousePointerToHand(false); goto done; }