Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugFix - Charset Input value copied to all Input items on screen #159

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/LcdMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -746,15 +746,15 @@ class LcdMenu {
// update text
//
if (blinkerPosition < ub) {
static char start[10];
static char end[10];
static char* joined = new char[maxCols - lb];
char start[10];
char end[10];
char* joined = new char[maxCols - lb];
substring(item->getValue(), 0, blinkerPosition - lb, start);
substring(item->getValue(), blinkerPosition + 1 - lb, length, end);
concat(start, character, end, joined);
item->setValue(joined);
} else {
static char* buf = new char[length + 2];
char* buf = new char[length + 2];
concat(item->getValue(), character, buf);
item->setValue(buf);
}
Expand Down
Loading