File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -773,6 +773,7 @@ namespace Core::Graphics
773773 {
774774 start_pos.x = start.x ;
775775 start_pos.y -= line_height; // 向下换行
776+ spdlog::debug (" [core] linebreak" );
776777 continue ;
777778 }
778779
Original file line number Diff line number Diff line change 11#include " AppFrame.h"
22// #include "utf8.hpp"
3+ #include " spdlog/spdlog.h"
34#include " utility/utf.hpp"
45#include " uni_algo/ranges_grapheme.h"
56#include < iterator>
@@ -273,7 +274,8 @@ namespace LuaSTGPlus
273274 {
274275
275276 char32_t code_ = 0 ;
276- utf::utf8reader reader_ (u8_str.data () + iCurrChar, u8_str.size () - iCurrChar);
277+ int currCharActual = std::next (view.begin (), iCurrChar).begin () - u8_str.begin ();
278+ utf::utf8reader reader_ (u8_str.data () + currCharActual, u8_str.size () - currCharActual);
277279 while (reader_ (code_))
278280 {
279281 if (code_ == U' \n ' || code_ == U' \0 ' )
You can’t perform that action at this time.
0 commit comments