diff --git a/loader/src/ui/nodes/TextArea.cpp b/loader/src/ui/nodes/TextArea.cpp index 8e09630f..c46384ff 100644 --- a/loader/src/ui/nodes/TextArea.cpp +++ b/loader/src/ui/nodes/TextArea.cpp @@ -209,7 +209,7 @@ void SimpleTextArea::updateLinesNoWrap() { void SimpleTextArea::updateLinesWordWrap(bool spaceWrap) { this->charIteration([this, spaceWrap](CCLabelBMFont* line, const char c, const float top) { - static const std::string delimiters(spaceWrap ? " " : " `~!@#$%^&*()-_=+[{}];:'\",<.>/?\\|"); + const std::string_view delimiters(spaceWrap ? " " : " `~!@#$%^&*()-_=+[{}];:'\",<.>/?\\|"); if (delimiters.find(c) == std::string_view::npos) { const std::string& text = line->getString();