diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-09-25 10:55:57 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-10-01 13:45:00 +0100 |
| commit | 249ec4835e07461a36042fb0be79363649135071 (patch) | |
| tree | 504c418aedf8fa252a040e79d2dbc90cfbb02119 /src/string.cc | |
| parent | 28cfd0bb61f5c60279358a7e58d5b6f68a1255f1 (diff) | |
Rename get_width to codepoint_width
Diffstat (limited to 'src/string.cc')
| -rw-r--r-- | src/string.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
