diff --git a/src/buffer.hh b/src/buffer.hh index 90c1bb11..4353f1b7 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -126,7 +126,7 @@ public: StringView operator[](LineCount line) const { return m_lines[line]; } - StringDataPtr line_storage(LineCount line) const + const StringDataPtr& line_storage(LineCount line) const { return m_lines.get_storage(line); } // returns an iterator at given coordinates. clamp line_and_column