summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-09-25 10:55:57 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-10-01 13:45:00 +0100
commit249ec4835e07461a36042fb0be79363649135071 (patch)
tree504c418aedf8fa252a040e79d2dbc90cfbb02119 /src/string.hh
parent28cfd0bb61f5c60279358a7e58d5b6f68a1255f1 (diff)
Rename get_width to codepoint_width
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);