summaryrefslogtreecommitdiff
path: root/src/buffer_utils.cc
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/buffer_utils.cc
parent28cfd0bb61f5c60279358a7e58d5b6f68a1255f1 (diff)
Rename get_width to codepoint_width
Diffstat (limited to 'src/buffer_utils.cc')
-rw-r--r--src/buffer_utils.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc
index ff018096..c238cc45 100644
--- a/src/buffer_utils.cc
+++ b/src/buffer_utils.cc
@@ -26,7 +26,7 @@ ColumnCount get_column(const Buffer& buffer,
++it;
}
else
- col += get_width(utf8::read_codepoint(it, line.end()));
+ col += codepoint_width(utf8::read_codepoint(it, line.end()));
}
return col;
}
@@ -48,7 +48,7 @@ ByteCount get_byte_to_column(const Buffer& buffer, ColumnCount tabstop, DisplayC
else
{
auto next = it;
- col += get_width(utf8::read_codepoint(next, line.end()));
+ col += codepoint_width(utf8::read_codepoint(next, line.end()));
if (col > coord.column) // the target column was in the char
break;
it = next;