From 7d3dfdc7a40eb289c664390dd4658d794eac54ee Mon Sep 17 00:00:00 2001 From: Siddhesh Dharme Date: Wed, 2 Oct 2024 00:18:27 +0530 Subject: [PATCH] ui: fix rightmost character on last row being replaced by blank --- src/window/scrollwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window/scrollwindow.cpp b/src/window/scrollwindow.cpp index a8ddf582..f78c042b 100644 --- a/src/window/scrollwindow.cpp +++ b/src/window/scrollwindow.cpp @@ -202,7 +202,7 @@ void ScrollWindow::Print(uint32_t line) const // Finish the line const int32_t curx = getcurx(window); const int32_t remaining_space = Columns()-curx; - curx && remaining_space && wprintw(window, "%s", std::string(remaining_space, ' ').c_str()); + curx && A_CHARTEXT & winch(window) == ' ' && wprintw(window, "%s", std::string(remaining_space, ' ').c_str()); return; }