From 52b77c19154f1f656e47c2f7e37d05fa050ff032 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 23 May 2013 19:21:34 +0200 Subject: window, editor: take coords rather than iterators parameters --- src/editor.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/editor.hh') 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, -- cgit v1.2.3