Fixed a typo in config.h u8cols().

This commit is contained in:
Casey Langen 2016-07-04 21:17:14 -07:00
parent 074c2d7b78
commit b7ad7a6028

View File

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