Skip to content

Commit

Permalink
Adjust whitespace filling based on paddWithBlanks flag
Browse files Browse the repository at this point in the history
Fill remaining space with whitespace only when paddWithBlanks is true to improve rendering.
  • Loading branch information
forntoh committed Oct 23, 2024
1 parent 6d08755 commit 49c5f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/CharacterDisplayRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ');
Expand Down

0 comments on commit 49c5f6f

Please sign in to comment.