mirror of
https://github.com/minetest/minetest.git
synced 2025-07-04 00:40:24 +02:00
Add comment to wrap_rows
This commit is contained in:
@ -433,6 +433,7 @@ inline std::string wrap_rows(const std::string &from,
|
||||
if (character_idx > 0 && character_idx % row_len == 0)
|
||||
need_to_wrap = true;
|
||||
if (!IS_UTF8_MULTB_INNER(from[i])) {
|
||||
// Warp string if needed before next char started
|
||||
if (need_to_wrap) {
|
||||
to += '\n';
|
||||
need_to_wrap = false;
|
||||
|
Reference in New Issue
Block a user