From 249ec4835e07461a36042fb0be79363649135071 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 25 Sep 2016 10:55:57 +0100 Subject: Rename get_width to codepoint_width --- src/string.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string.cc') diff --git a/src/string.cc b/src/string.cc index f3166895..7cc24e2c 100644 --- a/src/string.cc +++ b/src/string.cc @@ -384,7 +384,7 @@ String expand_tabs(StringView line, ColumnCount tabstop, ColumnCount col) auto char_beg = it; auto cp = utf8::read_codepoint(it, end); res += {char_beg, it}; - col += get_width(cp); + col += codepoint_width(cp); } } return res; -- cgit v1.2.3