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/buffer_utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buffer_utils.cc') 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; -- cgit v1.2.3