From 3b1b6e1a5bff76b6055456ce841c9a18c23f8748 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 21 Jul 2009 08:19:28 +0000 Subject: Added commands for rotating selections and swapping caret and anchor of main selection. --- src/Selection.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Selection.cxx') diff --git a/src/Selection.cxx b/src/Selection.cxx index 1ea5f1bbe..246cfe709 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -328,3 +328,7 @@ void Selection::RemoveDuplicates() { } } +void Selection::RotateMain() { + mainRange = (mainRange + 1) % ranges.size(); +} + -- cgit v1.2.3