Remove Editor::rotate_selections
This commit is contained in:
parent
d0d9717fcf
commit
49ee2495a4
|
@ -58,8 +58,6 @@ public:
|
|||
void move_selections(CharCount move,
|
||||
SelectMode mode = SelectMode::Replace);
|
||||
|
||||
void rotate_selections(int count) { m_selections.rotate_main(count); }
|
||||
|
||||
const SelectionList& selections() const { return m_selections; }
|
||||
SelectionList& selections() { return m_selections; }
|
||||
std::vector<String> selections_content() const;
|
||||
|
|
|
@ -786,7 +786,7 @@ void scroll(Context& context, int)
|
|||
|
||||
void rotate_selections(Context& context, int count)
|
||||
{
|
||||
context.editor().rotate_selections(count != 0 ? count : 1);
|
||||
context.editor().selections().rotate_main(count != 0 ? count : 1);
|
||||
}
|
||||
|
||||
void rotate_selections_content(Context& context, int count)
|
||||
|
@ -798,7 +798,7 @@ void rotate_selections_content(Context& context, int count)
|
|||
count = count % strings.size();
|
||||
std::rotate(strings.begin(), strings.end()-count, strings.end());
|
||||
editor.insert(strings, InsertMode::Replace);
|
||||
editor.rotate_selections(count);
|
||||
editor.selections().rotate_main(count);
|
||||
}
|
||||
|
||||
enum class SelectFlags
|
||||
|
|
Loading…
Reference in New Issue
Block a user