summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-12-14 18:41:55 +0000
committerMaxime Coste <frrrwww@gmail.com>2013-12-14 18:41:55 +0000
commit49ee2495a47774db6102807e7d640924bb96d83d (patch)
tree9f3ddacddaa691155e1a874d9853b31768f6c807 /src
parentd0d9717fcf70469009b39e58ac6f635f2076d18c (diff)
Remove Editor::rotate_selections
Diffstat (limited to 'src')
-rw-r--r--src/editor.hh2
-rw-r--r--src/normal.cc4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/editor.hh b/src/editor.hh
index d6884340..3af52494 100644
--- a/src/editor.hh
+++ b/src/editor.hh
@@ -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;
diff --git a/src/normal.cc b/src/normal.cc
index abcbe09f..27c2a963 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -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