From a42efaa97f46cdf8b2de537200f7e7eb02bbb300 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sat, 30 Jul 2022 21:02:14 -0700 Subject: [PATCH] Make line wrapping less bad in ListWindow if we don't calculate column width correctly. --- src/musikcube/cursespp/ScrollAdapterBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/musikcube/cursespp/ScrollAdapterBase.cpp b/src/musikcube/cursespp/ScrollAdapterBase.cpp index e0d9d84da..71c4935ef 100755 --- a/src/musikcube/cursespp/ScrollAdapterBase.cpp +++ b/src/musikcube/cursespp/ScrollAdapterBase.cpp @@ -133,6 +133,7 @@ void ScrollAdapterBase::DrawPage(ScrollableWindow* scrollable, size_t index, Scr for (size_t e = 0; e < visible.size(); e++) { EntryPtr entry = visible.at(e); size_t count = entry->GetLineCount(); + wmove(window, drawnLines, 0); for (size_t i = 0; i < count && drawnLines < this->height; i++) { Color attrs = Color::Default; @@ -161,7 +162,6 @@ void ScrollAdapterBase::DrawPage(ScrollableWindow* scrollable, size_t index, Scr } /* string is padded above, we don't need a \n */ - checked_wprintw(window, "%s", line.c_str()); if (attrs != -1) {