diff options
Diffstat (limited to 'src/buffer_utils.cc')
| -rw-r--r-- | src/buffer_utils.cc | 4 |
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; |
