1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-25 10:32:19 +03:00

Avoid useless StringDataPtr copy

This commit is contained in:
Maxime Coste 2015-11-07 16:55:20 +00:00
parent 329d5938a1
commit 04c8334c98

View File

@ -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