summaryrefslogtreecommitdiff
path: root/src/editor.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-05-27 14:22:21 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-05-30 13:59:38 +0200
commit7f8d5c1fd0808e7151f5465ede8a5548f05b2f6f (patch)
treec0714c9e97d921a7bb7565a3f2a11fc063fcf3f1 /src/editor.cc
parent93dd1ff3c7008c82b3db1263de5548c3f3b48f57 (diff)
Remove Range::content
Diffstat (limited to 'src/editor.cc')
-rw-r--r--src/editor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editor.cc b/src/editor.cc
index afdbafef..5ccb7889 100644
--- a/src/editor.cc
+++ b/src/editor.cc
@@ -129,7 +129,7 @@ std::vector<String> Editor::selections_content() const
{
std::vector<String> contents;
for (auto& sel : m_selections)
- contents.push_back(sel.content());
+ contents.push_back(m_buffer->string(sel.min(), utf8::next(sel.max())));
return contents;
}