diff --git a/neth/main.cpp b/neth/main.cpp index 0f27c84a7..744454def 100644 --- a/neth/main.cpp +++ b/neth/main.cpp @@ -240,14 +240,16 @@ int nc_window_streambuf::overflow(int c) int my = 0; getyx(m_pnl, y, x); getmaxyx(m_pnl, my, mx); - (void)my; if (y < 1) y = 1; if (x < 2) x = 2; if (x > mx - 4) { - y++; + if (y + 1 >= my) + scroll(m_pnl); + else + y++; x = 2; } if (m_flags)