diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-10-03 13:39:13 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-10-03 13:39:13 +0100 |
| commit | d4a84125ef4d23f2c3e0b2eed5f6efbdc88af141 (patch) | |
| tree | 7bb1f1a86b3361c8bae8c2ae0b400da7a856d514 /src/selection.cc | |
| parent | fc53a80395d569d94bd98e3aa3cdc3baf7baea4d (diff) | |
Use InternedStrings for buffer contents
Diffstat (limited to 'src/selection.cc')
| -rw-r--r-- | src/selection.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selection.cc b/src/selection.cc index f4640e5e..b188a2fe 100644 --- a/src/selection.cc +++ b/src/selection.cc @@ -410,8 +410,8 @@ namespace inline void _avoid_eol(const Buffer& buffer, ByteCoord& coord) { - const auto column = coord.column; - const auto& line = buffer[coord.line]; + auto column = coord.column; + auto line = buffer[coord.line]; if (column != 0 and column == line.length() - 1) coord.column = line.byte_count_to(line.char_length() - 2); } |
