Improve message pane interactions and editing

This commit is contained in:
2026-04-24 04:53:12 +03:00
parent ac28065d2a
commit 0de7073f00
6 changed files with 307 additions and 24 deletions

View File

@@ -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 {