Improve multiple cursors rules.