diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-02-07 14:26:51 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-02-07 14:26:51 +0000 |
| commit | 9b5e9ffee27e6a6a05403a2e9f21315818cca2aa (patch) | |
| tree | 2dd4b59cbe34e692fb5b3c3c2ef275f5543ece32 /src/editor.cc | |
| parent | ffaade96bac20914d3b284ca78d69a08dcfc735e (diff) | |
selectors now take a Selection as parameter instead of a BufferIterator
Diffstat (limited to 'src/editor.cc')
| -rw-r--r-- | src/editor.cc | 5 |
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)); } } |
