Improve message pane interactions and editing
This commit is contained in:
@@ -267,7 +267,7 @@ std::vector<std::string> wrap_text(const std::string& text, int width) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (static_cast<int>(current.size() + 1 + word.size()) > width) {
|
||||
if (utf8_display_width(current) + 1 + utf8_display_width(word) > width) {
|
||||
lines.push_back(current);
|
||||
current = word;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user