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/buffer_utils.cc | |
| parent | fc53a80395d569d94bd98e3aa3cdc3baf7baea4d (diff) | |
Use InternedStrings for buffer contents
Diffstat (limited to 'src/buffer_utils.cc')
| -rw-r--r-- | src/buffer_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc index 19e35552..eadf6415 100644 --- a/src/buffer_utils.cc +++ b/src/buffer_utils.cc @@ -11,7 +11,7 @@ namespace Kakoune CharCount get_column(const Buffer& buffer, CharCount tabstop, ByteCoord coord) { - auto& line = buffer[coord.line]; + auto line = buffer[coord.line]; auto col = 0_char; for (auto it = line.begin(); it != line.end() and coord.column > (int)(it - line.begin()); |
