summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.hh b/src/string.hh
index 2f3fc787..d8643935 100644
--- a/src/string.hh
+++ b/src/string.hh
@@ -113,8 +113,8 @@ public:
}
explicit String(Codepoint cp, ColumnCount count)
{
- kak_assert(count % get_width(cp) == 0);
- int cp_count = (int)count / get_width(cp);
+ kak_assert(count % codepoint_width(cp) == 0);
+ int cp_count = (int)count / codepoint_width(cp);
reserve(utf8::codepoint_size(cp) * cp_count);
while (cp_count-- > 0)
utf8::dump(std::back_inserter(*this), cp);