summaryrefslogtreecommitdiff
path: root/src/editor.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-05-23 19:21:34 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-05-30 13:59:38 +0200
commit52b77c19154f1f656e47c2f7e37d05fa050ff032 (patch)
tree9891dfcd47d13bb232be48028be6619e5e615d6d /src/editor.hh
parent4f1ba860f80838990fd05bc3f723339d221a2684 (diff)
window, editor: take coords rather than iterators parameters
Diffstat (limited to 'src/editor.hh')
-rw-r--r--src/editor.hh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/editor.hh b/src/editor.hh
index 402f2c9c..d99cb2ff 100644
--- a/src/editor.hh
+++ b/src/editor.hh
@@ -61,9 +61,8 @@ public:
void flip_selections();
void keep_selection(int index);
void remove_selection(int index);
- void select(const BufferIterator& it,
- SelectMode mode = SelectMode::Replace)
- { select(Selection{ it, it }, mode); }
+ void select(const BufferCoord& c, SelectMode mode = SelectMode::Replace)
+ { auto it = m_buffer->iterator_at(c); select(Selection{ it, it }, mode); }
void select(const Selection& sel,
SelectMode mode = SelectMode::Replace);
void select(const Selector& selector,