From 37aea91be14a4a941464c933d7a20d7e29aaee41 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 21 Aug 2024 19:13:21 +0200 Subject: [PATCH] Don't throw when window doesn't fit, ncurses can deal with it --- src/curses/window.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/curses/window.cpp b/src/curses/window.cpp index 5db41fb9..6c0b6d6b 100644 --- a/src/curses/window.cpp +++ b/src/curses/window.cpp @@ -506,12 +506,6 @@ Window::Window(size_t startx, size_t starty, size_t width, size_t height, m_alt_charset_counter(0), m_italic_counter(0) { - if (m_start_x > size_t(COLS) - || m_start_y > size_t(LINES) - || m_width+m_start_x > size_t(COLS) - || m_height+m_start_y > size_t(LINES)) - throw std::logic_error("constructed window doesn't fit into the terminal"); - if (m_border) { ++m_start_x;