Rename MultiSelector to Selector

This commit is contained in:
Maxime Coste 2013-12-14 14:38:05 +00:00
parent 6afef079b6
commit 93b561983a
2 changed files with 3 additions and 3 deletions

View File

@ -184,7 +184,7 @@ struct nothing_selected : public runtime_error
nothing_selected() : runtime_error("nothing was selected") {}
};
void Editor::select(const MultiSelector& selector)
void Editor::select(const Selector& selector)
{
selector(*m_buffer, m_selections);
check_invariant();

View File

@ -39,7 +39,7 @@ enum class InsertMode : unsigned
class Editor : public SafeCountable
{
public:
typedef std::function<void (const Buffer&, SelectionList&)> MultiSelector;
typedef std::function<void (const Buffer&, SelectionList&)> Selector;
Editor(Buffer& buffer);
virtual ~Editor() {}
@ -62,7 +62,7 @@ public:
void select(const Selection& sel,
SelectMode mode = SelectMode::Replace);
void select(SelectionList selections);
void select(const MultiSelector& selector);
void select(const Selector& selector);
void rotate_selections(int count) { m_selections.rotate_main(count); }