mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-28 15:16:43 +00:00
Fixed a typo in config.h u8cols().
This commit is contained in:
parent
074c2d7b78
commit
b7ad7a6028
@ -64,7 +64,7 @@ inline std::string u16to8(const std::wstring& u16) {
|
||||
|
||||
static inline size_t u8cols(const std::string& str) {
|
||||
std::wstring wstr = u8to16(str);
|
||||
return (size_t) std::max(0, wcswidth(wstr.c_str(), str.size()));
|
||||
return (size_t) std::max(0, wcswidth(wstr.c_str(), wstr.size()));
|
||||
}
|
||||
|
||||
inline static size_t u8len(const std::string& str) {
|
||||
|
Loading…
Reference in New Issue
Block a user