From d4a84125ef4d23f2c3e0b2eed5f6efbdc88af141 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 3 Oct 2014 13:39:13 +0100 Subject: Use InternedStrings for buffer contents --- src/buffer_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buffer_utils.cc') 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()); -- cgit v1.2.3