Rename MultiSelector to Selector
This commit is contained in:
parent
6afef079b6
commit
93b561983a
|
@ -184,7 +184,7 @@ struct nothing_selected : public runtime_error
|
||||||
nothing_selected() : runtime_error("nothing was selected") {}
|
nothing_selected() : runtime_error("nothing was selected") {}
|
||||||
};
|
};
|
||||||
|
|
||||||
void Editor::select(const MultiSelector& selector)
|
void Editor::select(const Selector& selector)
|
||||||
{
|
{
|
||||||
selector(*m_buffer, m_selections);
|
selector(*m_buffer, m_selections);
|
||||||
check_invariant();
|
check_invariant();
|
||||||
|
|
|
@ -39,7 +39,7 @@ enum class InsertMode : unsigned
|
||||||
class Editor : public SafeCountable
|
class Editor : public SafeCountable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef std::function<void (const Buffer&, SelectionList&)> MultiSelector;
|
typedef std::function<void (const Buffer&, SelectionList&)> Selector;
|
||||||
|
|
||||||
Editor(Buffer& buffer);
|
Editor(Buffer& buffer);
|
||||||
virtual ~Editor() {}
|
virtual ~Editor() {}
|
||||||
|
@ -62,7 +62,7 @@ public:
|
||||||
void select(const Selection& sel,
|
void select(const Selection& sel,
|
||||||
SelectMode mode = SelectMode::Replace);
|
SelectMode mode = SelectMode::Replace);
|
||||||
void select(SelectionList selections);
|
void select(SelectionList selections);
|
||||||
void select(const MultiSelector& selector);
|
void select(const Selector& selector);
|
||||||
|
|
||||||
void rotate_selections(int count) { m_selections.rotate_main(count); }
|
void rotate_selections(int count) { m_selections.rotate_main(count); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user