From c631e6240d64003c4716f1aeeb764a94dd973fb9 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 6 Jan 2026 21:53:48 +0100 Subject: [PATCH] fix wrong length of windows console Closes #50. Thanks to @Tomdein for finding this :) --- src/windows_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows_impl.cpp b/src/windows_impl.cpp index 589f533..e4a682b 100644 --- a/src/windows_impl.cpp +++ b/src/windows_impl.cpp @@ -58,7 +58,7 @@ int impl::get_terminal_width() { CONSOLE_SCREEN_BUFFER_INFO csbi; int ret = GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi); if (ret) { - return csbi.dwSize.Y; + return csbi.dwSize.X; } else { return 80; // some sane default }