From 49c5f6fce315cb5702fedc2be29dfedba4696ab0 Mon Sep 17 00:00:00 2001 From: forntoh Date: Wed, 23 Oct 2024 18:11:56 +0200 Subject: [PATCH] Adjust whitespace filling based on paddWithBlanks flag Fill remaining space with whitespace only when paddWithBlanks is true to improve rendering. --- src/renderer/CharacterDisplayRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/CharacterDisplayRenderer.cpp b/src/renderer/CharacterDisplayRenderer.cpp index 51325f5c..d1ad0e6a 100644 --- a/src/renderer/CharacterDisplayRenderer.cpp +++ b/src/renderer/CharacterDisplayRenderer.cpp @@ -49,7 +49,7 @@ void CharacterDisplayRenderer::drawItem(const char* text, const char* value, boo uint8_t cursorColEnd = cursorCol; - // Fill remaining space with whitespace only when not in edit mode + // Fill remaining space with whitespace only when paddWithBlanks is true if (paddWithBlanks) { for (; cursorCol < availableColumns; cursorCol++) { display->draw(' ');