Fix operator priority order error

This commit is contained in:
Maxime Coste 2018-03-26 19:19:47 +11:00
parent e9e83cdb8d
commit 5ba27c18a4

View File

@ -1388,9 +1388,9 @@ void rotate_selections_content(Context& context, NormalParams params)
const size_t index = selections.main_index();
const size_t index_in_group = index % group;
selections.set_main_index(index - index_in_group +
(direction == Forward) ?
((direction == Forward) ?
(index_in_group + count) % group
: (index_in_group + group - count % group) % group);
: (index_in_group + group - count % group) % group));
}
enum class SelectFlags