From 844c8f1ec4bfae6ee51fc70b9b6ebb0a4cd894ff Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 5 Oct 2014 10:20:50 +0100 Subject: InternedStrings know their slots --- src/buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buffer.cc') diff --git a/src/buffer.cc b/src/buffer.cc index 3c402905..2f80cc9c 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -453,7 +453,7 @@ ByteCoord Buffer::char_next(ByteCoord coord) const if (coord.column < m_lines[coord.line].length() - 1) { auto line = m_lines[coord.line]; - coord.column += utf8::codepoint_size(line[(int)coord.column]); + coord.column += utf8::codepoint_size(line[coord.column]); // Handle invalid utf-8 if (coord.column >= line.length()) { -- cgit v1.2.3