summaryrefslogtreecommitdiff
path: root/src/editor.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-02-07 14:26:51 +0000
committerMaxime Coste <frrrwww@gmail.com>2012-02-07 14:26:51 +0000
commit9b5e9ffee27e6a6a05403a2e9f21315818cca2aa (patch)
tree2dd4b59cbe34e692fb5b3c3c2ef275f5543ece32 /src/editor.cc
parentffaade96bac20914d3b284ca78d69a08dcfc735e (diff)
selectors now take a Selection as parameter instead of a BufferIterator
Diffstat (limited to 'src/editor.cc')
-rw-r--r--src/editor.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/editor.cc b/src/editor.cc
index 4f2f7ba9..fe8187d7 100644
--- a/src/editor.cc
+++ b/src/editor.cc
@@ -149,7 +149,6 @@ void Editor::select(const BufferIterator& iterator)
{
selections().clear();
selections().push_back(Selection(iterator, iterator));
-
}
void Editor::select(const Selector& selector, bool append)
@@ -159,12 +158,12 @@ void Editor::select(const Selector& selector, bool append)
if (not append)
{
for (auto& sel : selections())
- sel = selector(sel.last());
+ sel = selector(sel);
}
else
{
for (auto& sel : selections())
- sel.merge_with(selector(sel.last()));
+ sel.merge_with(selector(sel));
}
}