diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-12-15 20:37:07 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-12-15 20:37:07 +0000 |
| commit | ea95632709a6ae3df76772e83e1497a9fcfee52d (patch) | |
| tree | aa258ec83e7ec6f765c9c055d5faf1748dbde91b /src/editor.cc | |
| parent | ad0682ec75d072c648f044580d817bef4098abc0 (diff) | |
Move Editor::selections_content to Context
Diffstat (limited to 'src/editor.cc')
| -rw-r--r-- | src/editor.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/editor.cc b/src/editor.cc index 13b4511f..8f6bbcf5 100644 --- a/src/editor.cc +++ b/src/editor.cc @@ -16,12 +16,4 @@ Editor::Editor(Buffer& buffer) m_selections(buffer, {BufferCoord{}}) {} -std::vector<String> Editor::selections_content() const -{ - std::vector<String> contents; - for (auto& sel : m_selections) - contents.push_back(m_buffer->string(sel.min(), m_buffer->char_next(sel.max()))); - return contents; -} - } |
