diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-10-05 10:20:50 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-10-05 10:20:50 +0100 |
| commit | 844c8f1ec4bfae6ee51fc70b9b6ebb0a4cd894ff (patch) | |
| tree | 7477f42ac2f27a15ecd409b097cceb6fa37581a3 /src/buffer.cc | |
| parent | d4a84125ef4d23f2c3e0b2eed5f6efbdc88af141 (diff) | |
InternedStrings know their slots
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |
